No Body available when loading mail

Hello,

Screenies.zip (108,8 KB)

we try to convert attached mail to PDF.
The Mail is signed and i can open it in Microsoft (see other attachment).
The problem is, the last screenshot. As you can see no body is available in Aspose Data Model.

How can we convert such mails to PDF with content in the PDF?

Kind Regards,
Andy

Hello @AStelzner ,

Thank you for reporting your case.

To access the message body, please remove signature with the following code:

var loadOptions = new MsgLoadOptions { RemoveSignature = true };
var eml = MailMessage.Load(@"Input.msg", loadOptions);
1 Like

Thanks a lot @margarita.samodurova :slight_smile:

@AStelzner ,

Thank you for your interest to Aspose products.

Feel free to write if you have any further queries related to Aspose.Email. We’ll be glad to assist.