【发布时间】:2011-10-04 00:17:46
【问题描述】:
我正在使用 System.Net.Mail 向 Outlook 发送邮件 这是我使用的代码,
msg.From = new MailAddress("stagingsupport@syncfusion.com");
msg.IsBodyHtml = true;
msg.Body = "Some text";
msg.To.Add("karthike@syncfusion.com");
msg.Subject = "[Enterprise Priority] - Customer Incident 85172 for Karthik (108269) velusamys@syncfusion.com : Custom function called from within an AND function results in error - Syncfusion Website Team Test I – Created";
我得到的主题是 =?utf-8?B?W0VudGVycHJpc2UgU...
我在主题中给出了任何非 ascii 字符,但我以编码形式出现。我参考了以下链接,我无法得到那么多的解决方案,
System.Net.Mail and =?utf-8?B?XXXXX.... Headers
我必须遵循什么才能让主题得到正确的解码形式?
【问题讨论】:
-
这有什么问题?这是表示电子邮件标题的一种方式,对我来说看起来是正确的。