Search code examples
javascripthtmlhtml-emailmailto

Sending HTML in mailto anchor tag


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

<a href="mailto:someone@somewhere.com?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?


Solution

  • 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