MailMessageDateReceived Property
Gets the date and the time when the message was received by the server.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public DateTime DateReceived { get; }

Property Value

Type: DateTime
A DateTime value containing the date and time when the message was delivered into the mailbox (obtained from Received header) or MinValue if no Received header is available in the message. The default value is MinValue.

For an existing message, this property value is taken from Received headers of this message. When a new message is created using MailBee or if the existing message does not contain any Received headers, this property will return MinValue. If the e-mail message contains several Received headers, then the most recent one will be used to obtain DateReceived value.

When downloading messages from IMAP server, it's more reliable to use Envelope.DateReceived instead. Date information is always available in an IMAP envelope while Received header may be missing in a message.

To get or set the date when the message was composed, use Date property.

Note Note
By default, all dates are adjusted to UTC (GMT) timezone. To adjust to local time, set DatesAsUtc property of Parser object to true.
This sample downloads the first message from the specified POP3 account and displays the date and time when this message was received by the POP3 server.
using System;
using MailBee;
using MailBee.Pop3Mail;
using MailBee.Mime;

class Sample
    static void Main(string[] args)
        // Download the first mail message from the specified POP3 account.
        MailMessage msg = Pop3.QuickDownloadMessage("", "bill", "secret", 1);

        Console.WriteLine("This message was received at " + msg.DateReceived.ToString());
See Also