aspNetEmail

EmailMessage.LogPath Property

Path to the text log file.

public string LogPath {get; set;}

Remarks

If Logging = true, the log contents will be written to this file. Call GetLog() to see a string representation of this log.

Example

[C#]
		EmailMessage msg = new EmailMessage( "mail.MyCompany.com" );
		msg.FromAddress = "me@MyCompany.com";
		msg.To = "you@YourCompany.com";
		msg.LogPath = @"c:\temp\aspNetEmail.log";
		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.LogPath = "c:\temp\aspNetEmail.log"
		msg.Subject = "Daily Newsletter"
		msg.Body = "Here is our daily newsletter....."
		msg.Send()
		

See Also

EmailMessage Class | aspNetEmail Namespace