The number of times aspNetEmail should reconnect, if the SMTP session times out, during a mail merge.
[C#]
EmailMessage msg = new EmailMessage( "mail.myCompany.com");
msg.FromAddress = "me@myCompany.com";
msg.Subject = "Order Confirmation";
//logging for easier troubleshooting
msg.Logging = true;
msg.LogPath = "c:\\email.log";
DataTable dt = GetDataTable();
//perform a mail merge based upon the columns in the DataTable
msg.To = "##Email_Address##";
msg.Body = "Hi ##fldFirstName##\r\n Here is your invoice and order confirmation...";
//if the connection to the SMTP server is dropped, try to reconnect 3 times before failing
msg.MailMergeReconnectAttempts = 3;
//wait 30 seconds between each retry attempt
msg.MailMergeReconnectDelay = 30000;
//send the mail merge
msg.SendMailMerge( dt );
[VB.NET]
Dim msg As New EmailMessage("mail.myCompany.com")
msg.FromAddress = "me@myCompany.com"
msg.Subject = "Order Confirmation"
'logging for easier troubleshooting
msg.Logging = True
msg.LogPath = "c:\email.log"
Dim dt As DataTable = GetDataTable()
'perform a mail merge based upon the columns in the DataTable
msg.To = "##Email_Address##"
msg.Body = "Hi ##fldFirstName##" + ControlChars.Cr + ControlChars.Lf + " Here is your invoice and order confirmation..."
'if the connection to the SMTP server is dropped, try to reconnect 3 times before failing
msg.MailMergeReconnectAttempts = 3
'wait 30 seconds between each retry attempt
msg.MailMergeReconnectDelay = 30000
'send the mail merge
msg.SendMailMerge(dt)