one other issue I am having is actually clearing the messages from the E-mail queue in the dashboard. I keep getting the SMTP host is not found error which makes sense since I am using a third party mail service. How can I get these to display correctly?
protected override void SendEmailAsyncInternal(string siteName, MailMessage message, SMTPServerInfo smtpServer, EmailToken emailToken)
{
int response;
string detail;
try
{
var msg = new Mailer();
msg.SendGenericEmail(message.From.Address, message.To[0].Address, message.Subject, message.Body, true);
detail = string.Format("E-mail from {0} through {1} was dispatched (asynchronously)", message.From.Address, smtpServer.ServerName);
}
catch (Exception ex)
{
detail = string.Format("E-mail from {0} through {1}failed : {2} (asynchronously)", message.From.Address, smtpServer.ServerName, ex.Message);
}
EventLogProvider.LogInformation("CMSCustom", "Custom Asynch Mail Status", detail);
// base.SendEmailAsyncInternal(siteName, message, smtpServer, emailToken);
}