I have experienced the same problem when trying to add a clickable hyperlink to an email's HTML body. This was caused by spaces in the full pathname of the file.
The solution that I used is to replace spaces with "%20" in the address portion of the a href.
Assuming you stored the full path of the link into a string named
hyperlink, use the following to perform the replacement mentioned above.
Replace(hyperlink, " ", "%20")
Quote:
Originally Posted by Sue Mosher [MVP][_4_]
Michael is correct about the a tag. If it's not working for you, show the
relevant code.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Sreeni" wrote:
Hi Michel, thanks for your reply. a href tag I tried but it is not placing clickbale link on outlook HTML body. It works for plain or rich text mail body. Please help if I need to change any other settings in outlook.
mb wrote on Mon, 12 April 2010 03:16
The a href tag is the way to go, for instance:
a href='http://www.whatever.comclick me/a
--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en
Am Sun, 11 Apr 2010 21:46:17 -0400 schrieb Sreeni:
Hello Everyone,
Please help on below query..
We are using HTML mails for communication with clients. I need to place a
clickable link(URL) in outlook HTML mail body. we are using VB macro for
generating mail. I tried using html code a href= .. but that is not placing
clickable link. For mail body creation I am using object objMail.HTMLBody.
Thanks
Sreenivas.
Submitted using http://www.outlookforums.com
.
Submitted using http://www.outlookforums.com
.
|