专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > ASP.NET

怎么让邮件内容换行

发布时间:2011-06-22 14:28:53 文章来源:www.iduyao.cn 采编人员:星星草
如何让邮件内容换行
以下代码除了   &   ,其余都是原样显示,没有换行:
-------------------------
  Dim   WebmailMsg   As   String   =   "Full <br>   Name:   "   &   UserName   &   ControlChars.Cr   &   _
                                                                              " <br   /> \r   \nUser   Name:   "   &   UserName   &   ControlChars.Cr   &   _
                                                                              " <br   /> \r   \nUser   Email:   "   &   user_email   &   ControlChars.Cr   &   ControlChars.Cr   &   _
                                                                              " <br   /> \r\nTo   confirm   this   registration,   log   on   to   UserMain   page,   activate   the   user,   set   the   access   right   and   send   a   confirmation   to   the   user.   If   the   user   does   not   provide   the   salary   info,   please   contact   the   user   to   obtain   those   neccessary   info. "   &   ControlChars.Cr   &   ControlChars.Cr   &   _
                                                                              " <br   /> \r\nEmail   sent   via   GearUp   Match   web   interface. "

受到的邮件内容如下:
--------------------------------------
Full <br>   Name:   ert345 <br   /> \r   \nUser   Name:   ert345 <br   /> \r   \nUser
  Email:   sss@s33s.ss <br   /> \r\nTo   confirm   this   registration,   log   on   to   UserMain
  page,   activate   the   user,   set   the   access   right   and   send   a   confirmation   to   the   user.
  If   the   user   does   not   provide   the   salary   info,   please   contact   the   user   to   obtain   those
  neccessary   info. <br   /> \r\nEmail   sent   via   GearUp   Match   web   interface.


------解决方案--------------------
mail.BodyFormat = MailFormat.Html
这样呀~~~
------解决方案--------------------
换行:&lt;br&gt;
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: