Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending HTML in mailto anchor tag

I have an anchor tag on my web page that is currently defined as:

<a href="mailto:[email protected]?subject=Welcome&body=Check this out, please click <a href='http://example.com'>here</a>">Send to a Friend</a>

As this link demonstrates, I'm trying to send some HTML in an email when a user clicks a link. However, when the text opens in the email editor, it is displayed as pure text. How do I get it to be in HTML format?

like image 588
user208662 Avatar asked Jul 02 '10 13:07

user208662


2 Answers

The body part is supposed to be text/plain according to RFC 2368

Is it possible to add an HTML link in the body of a MAILTO link

like image 161
Tor-Erik Avatar answered Sep 19 '22 15:09

Tor-Erik


I'm pretty sure this is impossible.

like image 28
SLaks Avatar answered Sep 18 '22 15:09

SLaks