mailto send link in mail

I want to send mail in ASP.NET 1.0 with mailto
I want to add a link with href in the body of the mail
I get the string href in the body of the mail and the link is not clickable

mailUrl += "&body=";
string Linkstr = "http://www.experts-exchange.com"
BodyMail = "<a href='" + Linkstr + "'>link here</a>";
mailUrl  += BodyMail ;
ANAT2403Asked:
Who is Participating?
 
intlaqaConnect With a Mentor Commented:
Hello,

This works fine for me:
<html>
<body>
<a href="mailto:youremail@something?subject=this is the subject
&body= go to this site  http://www.experts-exchange.com"> send mail</a>
</body>
</html>

When you click on Send Mail, you'll find Outlook or Windows Mail or whatever popup and has the link on the body.

Also the following is working with me:

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<a href="mailto:someone@something.com?subject=the subject&body=<a href='http://www.experts-exchange.com'>click here</a>" id="myLink">eMail Us</a>
</body>
</html>
0
 
robastaCommented:
Your should set your message to html, e.g.

MailMessage msg = new MailMessage();
            msg.BodyFormat = MailFormat.Html;
0
 
intlaqaCommented:
Hi, replace the & with ? , the following works for me:
CodeBehind:
string mailUrl = "mailto:someone@something.com";
mailUrl += "?body=";
string Linkstr = "http://www.experts-exchange.com";
string BodyMail = "<a href='" + Linkstr + "'>link here</a>";
mailUrl  += BodyMail ;

myLink.HRef = mailUrl;


ASPX:
<a runat="server" id='myLink' href=''>eMail Us</a>
0
 
ANAT2403Author Commented:
None of the answers help me
I don't use MailMessage(); I use mailto
I wrote before the body & because I also have subject in the mail and in the subject I used ?
please help
Anat
0
 
ANAT2403Author Commented:
this is the code in which the link inside the mail is not working
<html>
<body>
<a href="mailto:?subject=this is the subject
&body= go to this site  http://www.experts-exchange.com"> send mail</a>
</body>
</html>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.