Hi Aspose,
Attached you find a simple Plain Text mail. When opened with MailMessage the BodyType is Html, but when opened with MapiMessage the BodyType is PlainText.
Code used with Aspose.Email.dll version 5.2:
MailMessage asposeMessage = MailMessage.Load(@“c:\test.msg”, MailMessageLoadOptions.DefaultMsg);
MapiMessage mapiMessage = MapiMessage.FromFile(@“c:\test.msg”);
string bodyType = asposeMessage.BodyType.ToString();
bodyType = mapiMessage.BodyType.ToString();
It must be an error in MailMessage.
Is there some other way to identify the real BodyType in MailMessage?
With regards
Lars Bøndergaard¨
Nexcom A/S
Hi again,
The TEST.msg file was of the content type “application/ms-tnef”.
The attached TEST2.msg file is of the content type “text/plain”. With this file I get the same result with Aspose.Email.dll 4.8 - 5.2, but it actually worked with version 4.7.
Is there a work around? I We are not downgrading to version 4.7
With regards
Lars Bøndergaard
Nexcom A/S
Hi Lars,
Thank you for sharing your sample files.
I have checked this file with Outlook Interop as well and it shows the format to be oleFormat. Could you please share how the type of body contents was determined as “text/plain” at your end? We need your assistance to further investigate the issue at our end.
Hi,
In the TEST2.msg the header has: Content-Type: text/plain; charset=“iso-8859-1”
/Lars
Hi Lars,
We have further investigated this issue at our end in light of your feedback and available history of such problems. It does seem to be a problem with the MailMessage that is showing wrong message body. We have logged it as EMAILNET-34745 in our bug tracking system for further investigation by our product team. We shall notify you here once there is some information available about this issue.
The issues you have found earlier (filed as EMAILNET-34745) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.