We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Part of Email Body Missing

Hello,
We have an email in which when we generate msg file using aspose part of email body goes missing in outlook.
Please see attached screen shot missingline.png.
However if we look at the html body that we get by parsing it shows that body part.
Please see attached screen shot missingline2.png

I have also attached msg file for your reference.
Email Details.zip (72.5 KB)
Thanks.

@serversupport,

Thank you for contacting Aspose support team.

We have tried to re-produce the scenario by using the HTML body in the sample MSG file as shown in the following sample code. However no issue is observed when this message is opened in Outlook 2013. You may please give a try to the sample code with the latest library Aspose.Email for .NET 17.9.0 and share the feedback. If issue is not resolved, please send us your source HTML body along with the code used during testing.

MailMessage mailMsg = new MailMessage();
// Set from, to, subject and body properties
mailMsg.From = "from@domain.com";
mailMsg.To = "to@domain.com";
mailMsg.Subject = "subject";
mailMsg.HtmlBody = File.ReadAllText(@"Body.html");
MapiMessage outlookMsg = MapiMessage.FromMailMessage(mailMsg);
outlookMsg.Save(@"output.msg");

output.zip (3.0 KB)
output.png (21.5 KB)Body.zip (1.1 KB)