Is it possibile to send an html email encoded in utf-16 with sharepoint 2010? My problem is that I have a message body wich can contain accented characters which on the receiving end are displayed wrong. I suppose this is because c# stores strings in utf-16 but sharepoint sends them in utf-8.
This is the code I'm using to send these emails:
StringDictionary headers = new StringDictionary();
headers.Add("to", user.Email);
headers.Add("from", "no-reply@domainname.com");
headers.Add("subject", oggetto);
headers.Add("content-type", "text/html");
SPUtility.SendEmail(mySite, headers, messaggio);
I tried also:
headers.Add("content-type", "text/html; charset:utf-16");
But in the headers of the email I get
text/html; charset:utf-16; charset=utf-8
So no luck for me.
Any idea?
System.Net.Mail.*classes – Steve B Jul 6 '12 at 14:12