Getting Dates from MimeMessage

The MimeMessage.Date is the received date, is there a way to get sent date, creation date and last modified date for an eml email? Also, is MimeMessage.Date UTC(GMT) date?

Thanks!

Hello,

We are working on this issue. I will get back to you soon.

Thanks,

Hello,

The received date in a Eml file is different from the Msg file. Here is the header for Eml file,check it out. You can see there are some delivery info in it.

Received: from smtpout25-01.prod.mesa1.secureserver.net ([68.178.232.29]) by mail.field2base.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Sep 2007 06:17:49 -0400
MIME-Version: 1.0
Received: (qmail 30065 invoked from network); 5 Sep 2007 10:16:15 -0000
Received: from unknown (HELO gdmailer01.dc1.corp.gd) (208.109.14.186) by smtpout25-01.prod.mesa1.secureserver.net with SMTP; 5 Sep 2007 10:16:15 -0000
Received: from mail pickup service by gdmailer01.dc1.corp.gd with Microsoft SMTPSVC; Wed, 5 Sep 2007 03:16:15 -0700
Return-Path: <bounced@godaddy.com>
Subject: Order Confirmation #79699680 (Automatic Renewal)
Date: Wed, 5 Sep 2007 06:16:15 -0400
Message-ID: <GDMAILER01iOyDEmFha00001f49@gdmailer01.dc1.corp.gd>
Thread-Topic: Order Confirmation #79699680 (Automatic Renewal)
thread-index: Acfvpcq8HNNaZCX8SJizZRakaJgNqA==
From: <support@godaddy.com>

Thanks Iret.

The header is the only place to get date information, correct? I mean it is unlike msg that you can rely on mapi property, for eml you have to parse to parse the header, do I understand it correctly?

Thanks!

Hi Iret,

Can we have the MimeMessage.Date property in GMT time? Thank you!

Becky

Yes, you are right. If an email is sent by SMTP servers, only the infomation about received date can get from the message.

For GMT format date, I think you convert the MimeMessage.Date as following code

DateTime dt = DateTime.Now;
Console.WriteLine(dt.ToString("yyyy-MM-ddThh:mmzzz"));

Thanks