aspNetEmail

EmailMessage.Date Property

Overrides the Date set in the mail header.

public string Date {get; set;}

Remarks

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.

Example

[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()
		

See Also

EmailMessage Class | aspNetEmail Namespace