What I then noticed is there are 2 Body properties:
Please specify which 2 Body properties are you referring to? It is not quite clear from the image…
Also, can you send an example of a message that has a problem?
Thank you.
WRT the 2 Body properties, in the screenshot below you can see that there is one called Body (Aspose.Email.Mapi.MapiMessageItemBase) which correctly contains the body of the email, and there is a second one called Body which contains Nothing.
I can’t see how I can reference the one that actually contains the body text.
Hi Dmitry, I have since managed to get my code to work by casting as follows:
Dim sBody As String = message.Body
If String.IsNullOrWhiteSpace(sBody) Then
sBody = DirectCast(message, Aspose.Email.Mapi.MapiMessageItemBase).Body
End If
What I feel I should add is that my application is a data import tool and uses Aspose libraries to read emails from MSG files in folders and from PSTs and that it only fails with the problem file when it is in a PST, so I would suggest that your developers check that area