We have problem today with our mail server. Their SMTP server went down. The only time in years we have had that problem. However it brought our server to it's knees. The majority of the errors that were recorded is like the one below. A sample of our code is below that.
I realize it was a provider failure, but is there a best practices type of approach to keep their failure from becoming ours, by sending to an alternative SMTP server, queuing for later or even dropping them without the server lag would be preferable.
Thanks
Randy Miller
Aspose.Email.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
and
var smtp = new Aspose.Email.Mail.SmtpClient("our smtp server", 1025, "our login", "our password"); try { smtp.Send(mm); } catch (Exception ex) { mySession.LogError("tg.objects.email.SendEmail 184"); mySession.LogException(ex); }