Hyperlink in email

Just starting out? Need help? Post your questions and find answers here.
Little_man
Enthusiast
Enthusiast
Posts: 143
Joined: Fri Mar 29, 2013 4:55 pm
Location: The Netherland

Hyperlink in email

Post by Little_man »

It is possible to create a hyperlink in a email,

Code: Select all

sMailAddress.s = "xxxxx@xxxxx.xx"
sMailSubject.s = "Test"
sMailBody.s    = "<html><body><p>Click here for more information: <a href=" + "%22" + "http://www.testsite.com/" + "%22" + ">Test Software</a></body></html>"

Tmp_Mail = ShellExecute_(0, "Open", "mailto:" + sMailAddress + "?subject=" + sMailSubject + "&body=" + sMailBody, 0, 0, #SW_SHOWNORMAL)
Kind Regards

Little_man
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Re: Hyperlink in email

Post by wombats »

Have you looked at this?
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Hyperlink in email

Post by #NULL »

did you try actual doublequotes for the href attribute value?

Code: Select all

... href=" + #DQUOTE$ + "http://www.testsite.com/" + #DQUOTE$ + ...
Little_man
Enthusiast
Enthusiast
Posts: 143
Joined: Fri Mar 29, 2013 4:55 pm
Location: The Netherland

Re: Hyperlink in email

Post by Little_man »

Thanks "#NULL":

Your solution to the problem mentioned does not work!!…

Little_man
Post Reply