HTML content captured inappropriate from msg file

Hi Aspose,

We are getting HTML content from msg file by using below code.

string InputMsgFilePath = @"";
string OutputHtmlFilePath = @"";

using (MemoryStream memoryStream = new MemoryStream(File.ReadAllBytes(InputMsgFilePath)))
{
	using (MapiMessage mapiMessage = MapiMessage.FromStream(memoryStream))
	//using (MapiMessage mapiMessage = MapiMessage.Load(memoryStream))
	{
		File.WriteAllText(OutputHtmlFilePath, mapiMessage.BodyHtml);
	}
}

It is working fine but recently we faced some random issue. HTML content captured inappropriate for attached msg file (RSI_ISSUE_117927.msg), Like it having 2 Body tag, 2 HTML tag etc. hence we are not able to view proper HTML content inside our viewer.

Please guide us in correct direction.

We are currently using Aspose.Email 22.5, also we have checked with 22.7 with no luck.

RSI_ISSUE_117927.zip (18.4 KB)

@serversupport

We have logged this problem in our issue tracking system as EMAILNET-40658. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi,

As I see EMAILNET-40658 issue status is resolved, can you please let me know how to resolved?

@serversupport

Yes, your issue has been resolved and its fix will be available in the next version of Aspose.Email for .NET i.e. 22.8. We will inform you via this forum thread once it is released.