Email with mailto in HTML format (enctype="text/html&qu

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Email with mailto in HTML format (enctype="text/html&qu

Post by Chris Corbyn »

Hi,

How do we use JavaScript to send an email in HTML format? Well actually.... more like "How do we use the mailto function to send email in HTML format?"

I'm doing that thing they say not to do and making a form that submit's data via the mailto function *cough* cough* ;-)

I'm specifying enctype="text/html" in the <form> tag but the received email just shows all the html code and has a .ATT attachment containing the form vars.

Can HTML emails be sent using mailto?

Thanks :-D
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Don't know if this is making a difference. The method I'm using to send the mail essentially equates to

Code: Select all

mailto:myemail@mydomain.com?subject=Something&body=<html><head></head><body>Some html<p>a new paragraph</body></html>
Post Reply