Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying URL in email

Status
Not open for further replies.

flowerscum

Programmer
Aug 12, 2003
4
US
I have a little VB Script that uses CDONTS to send out an HTML email. The email body is HTML string. The problem is my client's email client (Mac - Entourage) seems to alter the HTML tag, causing the URL to render next to the anchor words.

My code -

&quot;body = body & &quot;searched many hours <br> can only hope this &quot;
&quot;body = body & &quot;&quot;  <A href= target=_new class=linkclass>works</a><br>&quot;

works fine on MS email clients (outlook and outlook express). The html source from the resulting email is -


&quot; <A class=linkclass href=&quot;&quot;target=_new>works</A><BR> &quot;

However, in Entourage it's -

&quot;  works
 <# <BR>&quot;

and that renders as

&quot; works <#
Is there a better way to put a string like that together?

Any help would be hugely appreciated. Thank you.
 
Can we see the entire string being built? And the myMail.BodyFormat = ? and the myMail.MailFormat = ?
Thanks.
 
i came across a problem like this year or two back.

the problem lay in the email client not the code
for some reason the client didnt like the link

i dont know if this has been fixed in any newer versions since i had that problem (i havent tested anything like that on mac for a long time)

the easiet work around is to just use the url rather than makeing it a link

I can't be bothered to have a sig!
 
My comany (& me) had the same problem until they upgraded their version of Lotus Notes. The only problem with sending the URL to some email clients is that if the length reaches the clients threshold then it gets clipped (and of course doesn't work, and of course the user has no idea how to copy and paste it into their browser). CDO will fly over some email clients and give you everything (graphics included) where as CDONTS won't. It's one of those &quot;you gotta monkey around with it&quot; things.
 
Here's the relevant string portions -
body = body & &quot;<span style=font-family:&quot;&quot;Century Gothic&quot;&quot;>puzzled by the problem <br>&quot;
body = body & &quot;searched many hours <br> can only hope this &quot;
body = body & &quot;  <A href= target=_new > works</a><br> &quot;
body = body & &quot;<br></span>&quot;
body = body & &quot; </div>&quot;
body = body & &quot; </body>&quot;
body = body & &quot;</html>&quot;


objMail.Body = Body
objMail.MailFormat = 0
objMail.BodyFormat = CdoBodyFormatHTML


The problem ( besides the horrible haiku ) is the User sends me samples of e-zines (whatever) that have links in them that render perfectly on her client - consequently she expects to be able to do the same.

Thanks for taking the time to respond thoughtfully.
 
For what it's worth I read that there's a setting in Entourage for reading HTML email. It's in <Preferences> - <Display complex HTML in messages>
Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top