Overrides the Date set in the mail header.
When using this property, be sure the date specified meets the RFC format 2822. For more information, please see http://www.ietf.org/rfc/rfc2822.txt?number=2822.
[C#]
EmailMessage msg = new EmailMessage( "mail.MyCompany.com" );
msg.FromAddress = "me@MyCompany.com";
msg.To = "you@YourCompany.com";
msg.Date = "Sat, 5 Jul 2003 11:55:28 -0700";
msg.Subject = "Daily Newsletter";
msg.Body = "Here is our daily newsletter.....";
msg.Send();
[Visual Basic]
Dim msg As New EmailMessage("mail.MyCompany.com")
msg.FromAddress = "me@MyCompany.com"
msg.To = "you@YourCompany.com"
msg.Date = "Sat, 5 Jul 2003 11:55:28 -0700"
msg.Subject = "Daily Newsletter"
msg.Body = "Here is our daily newsletter....."
msg.Send()