Developer forum

Forum » Development » Mail retry
Unnsteinn Garðarsson
Unnsteinn Garðarsson
Reply

Is there any way to configure the mail server to retry a failed send ?

We have the following error when an order receipt email should be sent and I cannot see anything in Control Panel nor in Settings - Web and HTTP - SMTP that is off. The test email settings button in the SMTP settings returns success.

 



2022-03-24 17:19:57.438: Could not send email to XXX@YYY.com. System.Exception: No valid SMTP host found. Please specify a valid SMTP host in Control Panel. Errors: smtp.office365.com: System.Net.Mail.SmtpException: The operation has timed out.    at System.Net.Mail.SmtpClient.Send(MailMessage message)    at Dynamicweb.Mailing.EmailHandler.SendUsingSmptProtocol(MailMessage mailMessage, SmtpSender sender, List`1 hostList)     at Dynamicweb.Mailing.EmailHandler.SendUsingSmptProtocol(MailMessage mailMessage, SmtpSender sender, List`1 hostList)    at Dynamicweb.Mailing.EmailHandler.TryToSendEmail(MailMessage mailMessage, Boolean isFirstError, Boolean wasSent, List`1 hostList, ILogger systemSMTPLogger, SmtpSender sender)    at Dynamicweb.Mailing.EmailHandler.Send(MailMessage mailMessage, Boolean logging, Boolean throwException, String username, String password, Int32 port, Boolean useSsl, String host)
2022-03-24 17:19:57.454: Request headers: [   "Connection",   "Accept",   "Accept-Encoding",   "Accept-Language",   "Cookie",   "Host",   "User-Agent",   "X-Forwarded-For",   "SSL",   "X-Forwarded-Proto" ]
2022-03-24 17:19:57.454: Request item keys: [   {},   "PagePermissionWithInheritanceFrontend6555",   "owin.Environment",   "EcomCart:CustomCartContext",   "Dynamicweb.Analytics.VisitorCookie",   "Rendering.Items.ItemRelationListEditor_SocialLinks_2133",   "MS_HttpRequestMessage",   "AspSession",   "PermissionContextStack",   "DynamicwebLiveIntegrationEnabledAndActive",   "Dynamicweb.OMC.VisitorEngagementSettings.Config",   "Dynamicweb.OMC.VisitContext",   "PagePermissionWithInheritanceFrontend6407",   "AspSessionIDManagerInitializeRequestCalled",   "alternateUrlKey",   "ExecutionTableMapper",   "DWPAGEVIEW",   "PagePermissionWithInheritanceFrontend6413",   "Dynamicweb.Environment.Web",   "DynamicwebLiveIntegrationIsIntegrationActive",   "IsUserManagementPageRendering",   "Dynamicweb.Tracking.Tracker" ]
2022-03-24 17:19:57.470: Request form: []

 


Replies

 
Unnsteinn Garðarsson
Unnsteinn Garðarsson
Reply

Forgot to mention that this is happening on a Rapido solution running the latest version of Rapido and DW 9.12.10

 
Nicolai Pedersen
Reply

Dynamicweb is not able to retry mail sending. To do that you need to use iis dropfolder where the mail is written to disk and then picked up by IIS smtp service. Using smart hosts, it can use the office smtp server. Alternatively you need to use another SMTP provider like Sendgrid or similar.

 
Unnsteinn Garðarsson
Unnsteinn Garðarsson
Reply

Thanks for the quick reply.

 

You must be logged in to post in the forum