Developer forum

Forum » CMS - Standard features » SMTP errors when using username and password on Dw 9.8.5

SMTP errors when using username and password on Dw 9.8.5

Terri Donahue
Terri Donahue
Reply

Hi Team,

We are getting this error on a site upgraded to Dw 9.8.5. This worked prior to that version.This is the error in the EmailHander log

[4/23/2020 2:03:35 PM]: Error: System.Exception: No valid SMTP host found. Please specify a valid SMTP host in Control Panel. Errors: smtp.mailtrap.io: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> 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 107.21.132.128:25 
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) 
--- End of inner exception stack trace --- 
at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6) 
at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback) 
at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) 
at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) 
at System.Net.Mail.SmtpClient.GetConnection() 
at System.Net.Mail.SmtpClient.Send(MailMessage message) 
--- End of inner exception stack trace --- 
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.Send(MailMessage mailMessage, Boolean logging, Boolean throwException, String username, String password, Int32 port, Boolean useSsl, String host) 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I've checked the version via mailing on ordering and was not able to catch any errors (attachment). Please, specify your conditions and test case.

BR, Oleg QA

2020-04-24_1219.png 2020-04-24_1222.png
 
Terri Donahue
Terri Donahue
Reply

Hi Oleg,

Seems that setting the port to 2525 for MailTrap fixed the issue. Consider this closed. 

 

You must be logged in to post in the forum