使用c#.net的电子邮件的正文结构 [英] body stucture of email using c#.net
本文介绍了使用c#.net的电子邮件的正文结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所有人午后都好,
我从我的应用程序发送邮件.身体上,我必须像这样发送,
亲爱的,
我们必须为"
做点什么
但两行是串联的.
亲爱的,我们必须做点事情".
任何解决方案.
在此先谢谢您.
Good After Noon to all,
I send a mail from my application. in body,i have to send like this,
"Dear All,
we have to do something for"
but 2 lines are concatenated.
"Dear All, we have to do something".
Any solution for this.
Thanks in Advance.
推荐答案
根据您是以文本还是HTML形式发送电子邮件,需要在消息中放入Environment.Newline("\ n"),或HTML换行符< br/>"
Depending on whether you send emails as text or HTML you need to either put a Environment.Newline ("\n") in the message, or a HTML newline "<br />"
string text = "Dear All,\nwe have to do...";
string text = "Dear All,<br />we have to do...";
在消息中使用Environment.Newline("\ n")或使用< br/>标签,如果它是HTML.
Use Environment.Newline ("\n") in the message or Use <br /> tags if it is HTML.
这篇关于使用c#.net的电子邮件的正文结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文