Sending HTML to mailto anchor tag

I have an attached tag on my web page, which 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 shows, I'm trying to send HTML code by email when the user clicks the link. However, when text is opened in the email editor, it appears as clear text. How can I get it in HTML format?

+7
javascript html html-email mailto
source share
4 answers

It is assumed that the body part will be text / plain in accordance with RFC 2368

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

+11
source share

I am sure this is not possible.

+2
source share

I think it depends on the default options for the email editor. You tell the browser to open an open email editor, then you cannot tell which method sent this email.

If you want to have control with such parameters, you must implement sending mail yourself.

+1
source share

It depends on the user's email client setting.

If they have β€œsend email in plain text” (or something else in their email system), the text will be interpreted as plain text.

If they got "send as HTML", then it should encode correctly.

You have no control over this.

+1
source share

All Articles