Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hello , ..
I have to complete a task of sending Email from aspx page ,..
I using Ajax Editor control To allow user to enter his body message

No Errors in Code and the page run &Emails sent successfully ..
but when i browse the mail ,.. I find the messege in HTML Format Like This


< span style="font-size: 18pt; font-weight: bold"> Hello Code Project


Need help please
Thanx
Posted
Updated 11-Apr-11 9:15am
v2
Comments
Orcun Iyigun 11-Apr-11 15:21pm    
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();

message.IsBodyHtml = true; ?? is this included? or this; message.BodyFormat = MailFormat.Html;

Also if you provide some code it will be easier to figure out.
Hercal 11-Apr-11 16:07pm    
thanx orc orc
u solved my problem :) :)

1 solution

You'll send your mail using the MailMessage object which contains a property IsBodyHtml. If you set the value of that property to true, the header of your mail message will be modified so it shows the HTML body content neatly.

Good luck!

Eduard
 
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