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

Free Support Forum - aspose.com

Blank result .msg file

An example of creating .msg file Aspose.Email.dll is explained below:

  • We are using Trial version of Aspose.Email.dll (latest from NuGet)
  • Language used - DotNet (C#)
  • Sample html content (see attachment "SampleHtmlContent.txt")
  • Sample code in C# (see attachment "C# Sample code.docx")

Issue we are facing:

  • When we create a .msg file with the content of "Content.txt" we are getting no data (blank email body) in result .msg file
  • If we convert entire content to lower case we get the expected .msg file but the entire content is in lower case.

So the issue could lbe with the HTML tags, attributes or class names as we have capittal and Pascal case data in SmapleHtmlContent.txt, Aspose.Email.dll is not able to parse the html body correctly. But as we convert the entire content to lower case we are able to create the expected outlook file.


Thank you for contacting Aspose support team.

I have tested the code with Aspose.Email for .NET 5.4.0 and observed that resultant message is empty when “SampleHtmlContent.txt” is used as it is. However, I have tested this scenario with Aspose.Email for .NET 5.5.0 and it works fine with html content as it is. There is no need to change the html content to lower case while using AE 5.5.0. Could you please check the sample code with above mentioned latest library and let us know the feedback?