Adds additional debugging statements to the log.
This feature is useful when developing a mail merge campaign, or troubleshooting specific errors. It is not recommended to set to true for a production campaign, as there is a slight performance requirement.
[C#]
EmailMessage msg = new EmailMessage( "mail.myCompany.com");
msg.Subject = "Order Confirmation";
msg.To = "you@yourcompany.com";
//the .From property can be used to parse complex addresses into the address and name part
msg.From = "\"Steve James\" <me@myCompany.com>";
//logging for easier troubleshooting
msg.Logging = true;
msg.LogPath = "c:\\email.log";
msg.LogDebugStatements = true;
//set the plain text body
msg.Body = "the email body contents go here...";
msg.Send();
[VB.NET]
Dim msg As New EmailMessage("mail.myCompany.com")
msg.Subject = "Order Confirmation"
msg.To = "you@yourcompany.com"
'the .From property can be used to parse complex addresses into the address and name part
msg.From = """Steve James"" <me@myCompany.com>"
'logging for easier troubleshooting
msg.Logging = True
msg.LogPath = "c:\email.log"
msg.LogDebugStatements = True
'set the plain text body
msg.Body = "the email body contents go here..."
msg.Send()