XML HTML格式帮助. [英] Help with XML HTML formating.
问题描述
我不知道是否可以在这里提出这个问题.我找不到在该论坛上发表评论的方法,因此请为此忍受一次.
我在这里遵循了一个教程 http://www.fairnet.com/post /2010/01/27/Email-Template-using-C.aspx [
I dont know if its ok to ask this question here. I couldnt find a way to comment on that forum so please suffer me for this once.
I followed a tutorial here http://www.fairnet.com/post/2010/01/27/Email-Template-using-C.aspx[^] about email templates.
However, when i send the email, it doesnt seem to respect the HTML formats in the XML template.
I sent the email to yahoo and gmail. Both deliver without respecting the HTML tags in the XML template. And I did set IsBodyHtml to true. Is there something else i need to do that I am not doing?
Thank you in advance.
推荐答案
您需要将BodyFormat设置为HTML
http://msdn.microsoft.com /en-us/library/system.web.mail.mailmessage.bodyformat(v=VS.90).aspx [
You need to set the BodyFormat to HTML
http://msdn.microsoft.com/en-us/library/system.web.mail.mailmessage.bodyformat(v=VS.90).aspx[^]
这篇关于XML HTML格式帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!