javascript - how to send html with mailto? -


i have following html form...

<form id="mform"  method="get" enctype="text/plain"> <input name="firstname" type="text" id="firstname"> <input type="submit" class="submit-sponsor-btn" name="submit" value="submit"  onclick="javascript:domailto(); return false;" id="submit"> </form> 

and javascript looks this...

var msubject = "become sponsor start connection future talent"; var mfirstname = $('#firstname').val(); var mbody = "<h1>sponsor information below:</h1><p>firstname:"+mfirstname + "</p>"; var smailto = "mailto:memail@something.com?subject="+ msubject + "&body="+ mbody;   function domailto() {       window.open(smailto);    } 

what need code, enable html tags rendered within e-mail? because of right now, shows element tags along content.

thanks advice!

you can set mail content mime-type html, page rendered. work if content generated server-side.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -