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)