I am sending mail to outlook using System.Net.Mail Here code i used,
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";
I am getting the subject like =?utf-8?B?W0VudGVycHJpc2UgU...
I dint give any non ascii character in subject but i comes in encoded form.I refered the following link,i cant get the solution that much,
System.Net.Mail and =?utf-8?B?XXXXX.... Headers
What i have to follow to get the subject come correct decoded form?
您必须设置UTF8编码。
msg.SubjectEncoding= System.Text.Encoding.UTF8;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.