在电子邮件正文中显示html页面. [英] showing the html page in the body of emailing.
本文介绍了在电子邮件正文中显示html页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp.net应用程序,该应用程序将批量邮件发送给我们的客户,并且我们正在使用邮件正文的文本框.我想在其中显示一个html页面.
它不是附件,我想在邮件正文中显示完整的HTML设计页面.
I am having asp.net application which sends the bulk mail to our customers and we are using the text box for the body of the mail. in that i would like to show one html page inside.
It is not attachement and i would like to show the full designed HTML page inside the body of the mail.
推荐答案
设置IsBodyHtml [
Set the IsBodyHtml[^] property and add html to the body of the message.
发送邮件时以HTML格式发送.
将mm设为新MailMessage(FromEmailAddress,ToEmailAddress)
mm.IsBodyHtml = True
检查链接发送邮件 [
When your send mail send it in HTML format.
Dim mm As New MailMessage(FromEmailAddress, ToEmailAddress)
mm.IsBodyHtml = True
check the link send mail[^]
这篇关于在电子邮件正文中显示html页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文