Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML: send image in mailto?body

Tags:

html

email

mailto

I am used to setting the body and subject of an email with text with the mailto function, eg:

href="mailto:?body=Thanks!"

But is there a way to send an image in the body? Eg:

href="mailto:?body=<img src='http://www.example.com/image.jpg'>"

(obviously above doesn't work - it just adds the html as a string)

Any advice appreciated! Thanks!

like image 961
MeltingDog Avatar asked Jul 27 '12 02:07

MeltingDog


1 Answers

From the horse's mouth:

The "body" hname should contain the content for the first text/plain body part of the message. The mailto URL is primarily intended for generation of short text messages that are actually the content of automatic processing (such as "subscribe" messages for mailing lists), not general MIME bodies.

In other words, the content is in text/plain format, not MIME HTML.

like image 124
j08691 Avatar answered Oct 13 '22 00:10

j08691