與使用Stringbuilder進行以下操作相比,有沒有一種更好的方法可以用C#生成HTML電子郵件(用于通過System.Net.Mail發(fā)送)?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>");等等等等?
在C#中生成HTML電子郵件正文
慕的地6264312
2019-11-06 10:31:20