Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I need to open default mail client on button click, with filled html content in body.

I will fill html from code behind.

User just needs to enter toemail and can send it to their friends.

NOTE:

body should filled with HTML content, and not specific to outlook.

should support every mail types.
Posted
Updated 18-Sep-14 23:49pm
v2
Comments
ZurdoDev 19-Sep-14 7:32am    
Where are you stuck?
nandakishoreroyal 19-Sep-14 7:39am    
how to write code?

I wrote:
mailto:?body=<html><head></head><body><table><tr><td>Test</td></tr></table></body></html>

but it doesnt fill html in body.

1 solution

It is not possibe to fill html content in body,

there is no other way,

you can do it from c# code behind only for outlook, not any gmail, yahoo etc...

mailto is the only option to open default email client window
 
Share this answer
 

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