creating a true hyperlink href= in an email body dynamically

P

Paul

Hi,
I am creating emails dynamically using C# and would like to place a
hyperlink in the email body before sending it out. I added the text for what
I thought was a hyperlink but the email just shows the entire text including
the navigation URL where I would like it to show up as a clickable link but
only display the portion of the hyperlink that it is supposed to.
I am using microsoft Office 2007 and VS2005.
Thanks.
 
H

Hans Kesting

Paul pretended :
Hi,
I am creating emails dynamically using C# and would like to place a
hyperlink in the email body before sending it out. I added the text for what
I thought was a hyperlink but the email just shows the entire text including
the navigation URL where I would like it to show up as a clickable link but
only display the portion of the hyperlink that it is supposed to.
I am using microsoft Office 2007 and VS2005.
Thanks.

What is the format of the mail body? If it is set to "text" (which is
the default) then html wouldn't work. You need to set the type to
"html" and provide an html text (which can include a <a href=...>)

Set System.Net.MailMessage.IsBodyHtml to true

Hans Kesting
 
P

Paul

Thanks for the response, I think the email mode is currently text, will try
to set it to html as suggested.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top