为了账号安全,请及时绑定邮箱和手机立即绑定

在C#中生成HTML电子邮件正文

在C#中生成HTML电子邮件正文

慕的地6264312 2019-11-06 10:31:20
与使用Stringbuilder进行以下操作相比,有没有一种更好的方法可以用C#生成HTML电子邮件(用于通过System.Net.Mail发送)?string userName = "John Doe";StringBuilder mailBody = new StringBuilder();mailBody.AppendFormat("<h1>Heading Here</h1>");mailBody.AppendFormat("Dear {0}," userName);mailBody.AppendFormat("<br />");mailBody.AppendFormat("<p>First part of the email body goes here</p>");等等等等?
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 1087 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号