Free Support Forum -


How can I use the UniqueBody part of an email using EWS? If I try to set a variable equal to UniqueBody like this...

string body = message.UniqueBody.Text; 

That errors out saying, "You must load or assign this property before you can read its value." I was hoping UniqueBody would work out-of-the-box, meaning I wouldn't have to parse a new email to grab the new details I care about. I'm assuming there is something easy I'm missing. Any ideas?

This message was posted using Page2Forum from UniqueBody Property - Aspose.Network for .NET


Thank you for inquiry.

Could you please share some details and code about your scenario in which you want to use the UniqueBody property?

To get the message body using Aspose.Network’s ExchangeWebServiceClient, you may refer to the sample code at this page.