MailTo with HTML body
No. This is not possible at all.
My problem goes something like this:
A client receives an email sent by Exchange Server. In the mail he has a formatted body with HTML with a couple of links that have
My question is: can i insert HTML formatted body in the mailto: part of the href?
<a href='mailto:email@example.com?subject=Me&body=<b>ME</b>'>Mail me</a>?
Note that (2016) in iOS, it is perfectly fine to add
<b> tags for simple italic, bold formatting.
I have used this and it seems to work with outlook, not using html but you can format the text with line breaks at least when the body is added as output.
<a href="mailto:firstname.lastname@example.org?subject=Hello world&body=Line one%0DLine two">Email me</a>
Here's how you add everything to a MAILTO link:
<a href="mailto:YourName@YourSite.com? cc=someone@YourSite.com&bcc=someoneElse@YourSite.com &subject=Shipping%20Information%20Request&body=Please%20tell%20me%20if%20my%20order%20has%20shipped!">Shipping Request</a>
Each component is separated by the ampersand (&) sign. Only the first component after the initial email address has a question mark (?) preceding the ampersand.
URL-encode is the key! So for your example of a body, instead of your
...you might try:
It is possible to enter unicode values to insert newlines (ie: '\u0009') but HTML tags have varying degrees of support and should be avoided.
Some things are possible, but not all, say for example you want line breaks, instead of using
<a href="mailto:?subject=&body=Hello,%0D%0A%0D%0AHere is the link to the PDF Brochure.%0D%0A%0D%0ATo view the brochure please click the following link: http://www.uyslist.com/yachts/brochure.pdf"><img src="images/email.png" alt="EMail PDF Brochure" /></a>