怎么让邮件内容换行
发布时间: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
这样呀~~~
------解决方案--------------------
换行:<br>
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
页面基类PageBase.cs代码,实现系统进入权限判断 这样思路有问题吗?
pagebase.cs 代码
C# code
public class PageBase:System.We...
-
linq中的表连接语句???
例如:album,artist,genre这三个表的连接语句。。谢谢
------解决方案--------------------
public PagedList<...
-
为什么Repeater控件生成的HTML有很多空行?
效果如下,每个超链接之后都自动换行。
<a target="_blank" href='http://v.gamefy.cn/v...
-
关于模式窗口关闭的问题(在线等,解答立刻结贴给分)
功能什么都做完了。问题有二:
1.关闭的时候父窗口不刷新。于是我在吊用模式窗口的...
-
ASP.NET 中为什么要把相对路径处理成 绝对路径
处理函数如下:
C# code
// Builds an absolute URL
private static strin...
-
asp.net里面像QQ相册那样列表然后预览的jquery特效
asp.net里面像QQ相册那样列表然后预览的jquery特效
谁有这样的完整例子,...
-
求高手共同破解JQGrid 4.1 for Asp.net(比GridView强大)
软件名称:jqSuite(此插件比asp.net自带GridView强大的多,但只能使用30天)
...
-
急!!!在线等 asp.net中页面传值刷新不跳转新建窗口
C# code
<asp:TemplateField HeaderText="操作管...
-
请教:asp.net 导出word文件思路
我要从数据库取数据,写到word文件里,请教高手指点.多谢了!
------解决方案--------------------...
-
jqGrid4定义按钮查询(用过jqGrid的高手请进,在线等)
如图,json格式数据已加载,如果不用JQGrid底部工具栏上查询按钮查询,用最上面自己...