我正在尝试将 html 电子邮件的邮件正文设置为我使用的不同语言
MailMessage msg = new MailMessage();
msg.BodyEncoding = Encoder ?????
谢谢
查看此信息:http ://en.wikipedia.org/wiki/UTF-8
正如@SriramSakthivel 在他的评论中提到的那样,您可以做到:
UTF-8 编码支持您需要的所有语言!
MailMessage message = new MailMessage()
{
From = new MailAddress("My@MyMail.com", "Test"),
BodyEncoding = Encoding.UTF8,
Body = body,
IsBodyHtml = true,
ReplyTo = new MailAddress("Someone@Test.com"),
SubjectEncoding = Encoding.UTF8
}