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.
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.