When it is received by Outlook, it adds creation time, which can be accessed as below: MapiMessage msg = MapiMessage.FromFile(test.msg”); MapiProperty propCreationDate = msg.Properties[MapiPropertyTag.PR_CREATION_TIME]; Console.WriteLine("Msg creation date: " + propCreationDate.GetDateTime().ToString());
Msg file can be loaded via both MailMessage and MapiMessage classes.
MailMessage: General class for loading email messages of type eml, msg or mhtml. This class is used throughout other Aspose.Network classes e.g. SmtpClient (to send emails), Pop3Client.Fetch() (to download message from pop3 server), etc. Most common properties related to the email can be accessed e.g. sender, to, cc, bcc, subject, body, attachments etc. For details, please visit http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/aspose.network.mail.mailmessage.html.