We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting the sent and received dates from an email

Hi there.
Since upgrading to the latest versions of Aspose.Email (from an admittedly very old version), I’ve noticed that the MailMessage class only contains the “Date” property. How can I get both the sent and received date from the MailMessage class, as we use this for some reporting and statistics.

Thanks very much.


The Date field of MailMessage, as per RFC: https://tools.ietf.org/html/rfc4021

Specifies the date and time at which the creator of the message indicated that the message was complete and ready to enter the mail delivery system.

MailMessage class has headers collection that includes the Received header which contains the server information and the date/time when it was received the server. This header can be used to get information about the received time of the message. At present, there is no such property or class exposed that you can use to get this information from message.