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
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.