Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to open default configured email window by filling html in body.

mailto not filling html content in body.

if i configured gmail as default, when i click button gmail window should open by filling html content in body .

what i do after is, i will add "toemail" and i will send.
Posted
Updated 21-Sep-14 22:53pm
v3

1 solution

You can't. If you use a MAILTO link you are limited to only plain text in the subject and body elements.

The other problem is that a web page cannot launch the users default email handler in all browsers without a MAILTO tag. There is no standard method of doing this outside of that tag and any method you find on the web will not be supported by most browsers.

Blame the spammers and virus-writing idiots for this.
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 18-Sep-14 14:02pm    
Agree, a 5.
—SA
nandakishoreroyal 19-Sep-14 8:42am    
Any other suggestion to send html in email.
Dave Kreskowiak 19-Sep-14 14:09pm    
From the client workstation? You don't have any options.

Any HTML formatter email will have to be sent from web server itself. You cannot do it consistently across browsers and email clients on the client side.
nandakishoreroyal 22-Sep-14 3:23am    
Thank you Dave for your reply,

Other than using mailto is there any other way with out using mailto to send html mail.

and to open default mail client window.
Dave Kreskowiak 22-Sep-14 7:25am    
>SMACK<

Go back and reread what I posted. I hate repeating myself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900