200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > jmail 发送html jmail发送html格式的邮件

jmail 发送html jmail发送html格式的邮件

时间:2023-07-14 00:20:28

相关推荐

jmail 发送html jmail发送html格式的邮件

jmail发送邮件非常的方便,但是发送的邮件在收件箱中无任何格式,本文中将向您介绍添加html格式的方法。

前台页面.aspx 添加一个div和一个label,Label的内容在Page_Load中调用构造函数生成。

后台页面.cs

protected void Create_MailBody(string mailto,string mailfrom)

{

string mailbody = "

"+mailto + ",";

mailbody += "

Thanks again for granting us the project. We are in the process of lunching he project. We well need your help to confirm or provide the following information.

";

mailbody += "

1. Please confirm that the CAD files as in quote are latest if not please email us the latest. Please also point out the changes between quoted file and latest files.

";

mailbody += "

2. Please provide 2D files with tolerances and critical dimensions for our quality control purpose.

";

mailbody += "

3. Please provide an assembly file if these parts are assembled together.

";

mailbody += "

4. Please provide the mating part drawings if these parts will be assembled the other parts. Or please provide us real samples of mating part. We will try the fitiness before shipping.

";

mailbody += "

We have setup a project website for this project. You may login to view the project team, project launch info and project status.

";

mailbody += "

Please let us know if you have any questions.

";

mailbody += "

Best Regards.

";

mailbody += "

" + mailfrom + "

";

mailbody += "ICOMold

6415 Angle RD

";

lbl_content.Text = mailbody;

}

这样发送到邮箱后就会按照html格式显示,效果如上图所示。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。