aspNetEmail

EmailMessage.LogBody Property

When logging is turned on, LogBody can log or ignore the body of the email to the log file.

public bool LogBody {get; set;}

Remarks

By default EmailMessage.LogBody = True During extensive logging, set EmailMessage.LogBody = false. This will drastically improve performance for extended logging periods.

Example

[C#]
		EmailMessage msg = new EmailMessage( "mail.MyCompany.com" );
		msg.FromAddress = "me@MyCompany.com";
		msg.To = "you@YourCompany.com";
		msg.Logging = true;
		msg.LogOverwrite = false;
		msg.LogBody = false;
		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.Logging = True
		msg.LogOverwrite = False
		msg.LogBody = False
		msg.Subject = "Daily Newsletter"
		msg.Body = "Here is our daily newsletter....."
		msg.Send()
		

See Also

EmailMessage Class | aspNetEmail Namespace