MailBee.NET Objects 7.2

MailMessage.DateSent Property

Gets or sets the date and the time when the mail message was sent.

public System.DateTime DateSent {get; set;}

Property Value

The date when the mail message was sent. The default value is MinValue.

Remarks

This value is taken from "X-Date-Sent" header. It's not a standard header and most e-mails won't have it set. However, MailBee sets this header when you convert an e-mail from Outlook .MSG format into .EML format (using MsgConvert class). The same way, if you set this header, "Date Sent" value will appear in the resulting .MSG if you're doing .EML-to-.MSG conversion.

Exceptions

Exception Type Condition
MailBeeDateParsingException A date parsing error occurred and ThrowExceptions is true.

See Also

MailMessage Class | MailBee.Mime Namespace | DateReceived | Date