Hi,
I’m using Aspose.Network.Exchange to open a user’s mailbox and save emails as .msg files with code along these lines.
ExchangeClient client = new ExchangeClient(mailboxUri, user, password);The emails in the mailbox are in HTML format, but when I open the saved version Outlook shows me a rich-text version with incorrect formatting. If I use MailMessageSaveType.EmlFormat the correct HTML body is saved, which is great except that I need .msg files, not .eml.
MailMessage message = client.FetchMessage(messageUri);
message.Save(@“C:\test.msg”, MailMessageSaveType.OutlookMessageFormat);
I am using what I believe is the latest version, 4.8.1.1. How can I save .msg files with a HTML body and have them open correctly in Outlook?
Thanks,
Alex.