I have just converted a project from Aspose.Network to Aspose.Email and I’m getting a null reference error when accessing the MapiMessage.ReplyTo property. I am creating the MapiMessage object from an email dragged from Outlook. If I drag and drop an email that does have an explicit ReplyTo email it works fine, but for most emails when the following line of code is executed:
myStringVar = msg.ReplyTo
I get the message: “Object reference not set to an instance of an object”:
All other properties seem to be OK.
I have attached an image showing the problem property in debug mode.