使用Editor Ajax控件发送电子邮件时,消息以HTML格式发送 [英] when sending email message using Editor Ajax control, message sent in HTML Format

查看:80
本文介绍了使用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


这篇关于使用Editor Ajax控件发送电子邮件时,消息以HTML格式发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆