使用Editor Ajax控件发送电子邮件时,消息以HTML格式发送

问题描述:

你好,..
我必须完成从aspx页面发送电子邮件的任务,..
我使用Ajax编辑器控件允许用户输入他的身体消息

代码中没有错误,并且页面运行和电子邮件发送成功..
但是,当我浏览邮件时,..我发现HTML格式的邮件


< span style ="font-size:18pt; font-weight:bold"> Hello代码项目


需要帮助
Thanx

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

您将使用MailMessage对象发送邮件,该对象包含属性IsBodyHtml.如果将该属性的值设置为true,则将修改电子邮件的标题,以便其整齐地显示HTML正文内容.

祝你好运!

爱德华
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