Hi,
we have a problem with the encoding in the subject of our saved MapiMessage.
We use following code for create an editable MSG-file:
using (MailMessage mm = new MailMessage())
{mm.PreferredTextEncoding = Encoding.UTF8;}
mm.SubjectEncoding = Encoding.UTF8;
mm.Subject = “Einstellungen für Office 2010”;
mm.IsBodyHtml = true;
mm.BodyEncoding = Encoding.UTF8;
mm.HtmlBody = File.ReadAllText(filepath, Encoding.UTF8);
using (MapiMessage mapiMessage = MapiMessage.FromMailMessage(mm))
{mapiMessage.SetMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT);}
mapiMessage.Save(“C:\temp\test.msg”);
The subject looks like the attachment.
What are we doing wrong?