2

Is there any way to add a HTML link to the body of a mailto email?

I know this is possible with activeX but I can't use that (I need it to work in other browsers than IE)

Something like this:

 body=<a href='http:www.test.com'> link </a>
 window.location.href = "mailto:" + emailTo + "?subject=" + subject+ "&body=" + body;
user3378165
  • 6,546
  • 17
  • 62
  • 101

2 Answers2

0

Give this a try:

Place the full url in the body variable when a mailto link is created.

<a href="emailadress?Subject=Test&body=go%20to%20this%20link%20for%20me:%20http://stackoverflow.com">mailto</a>

The URL needs to have a full path. All email clients should be able to make this into a link when a mailto link is clicked.

Cheers

Sandy Gifford
  • 7,219
  • 3
  • 35
  • 65
Syfer
  • 4,262
  • 3
  • 20
  • 37
-1

This Will Help You

http://www.html-form-guide.com/email-form/email-form-mailto.html

is there anyway to SEND eMails in intranet environment without using SMTP in C#.net?

Community
  • 1
  • 1
Divya
  • 1,469
  • 1
  • 13
  • 25
  • Thank you, but I do not see how it can help me, I'm looking for a client side solution to add a HTML link to a body of an email without using activex. – user3378165 Feb 15 '17 at 09:17