When I try to send the mail, I am getting following exception.
System.Net.WebE xception: Unable to connect to the remote server ---> System.Net.Sock ets.SocketExcep tion: 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 10.89.22.51:25
at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t, SocketAddress socketAddress)
at System.Net.Sock ets.Socket.Inte rnalConnect(End Point remoteEP)
at System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketSt ate state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.Serv icePoint.GetCon nection(PooledS tream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
at System.Net.Pool edStream.Activa te(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDel egate asyncCallback)
at System.Net.Pool edStream.Activa te(Object owningObject, GeneralAsyncDel egate asyncCallback)
at System.Net.Conn ectionPool.GetC onnection(Objec t owningObject, GeneralAsyncDel egate asyncCallback, Int32 creationTimeout )
at System.Net.Mail .SmtpConnection .GetConnection( String host, Int32 port)
at System.Net.Mail .SmtpTransport. GetConnection(S tring host, Int32 port)
at System.Net.Mail .SmtpClient.Get Connection()
at System.Net.Mail .SmtpClient.Sen d(MailMessage message)
This error has started recently.
System.Net.WebE xception: Unable to connect to the remote server ---> System.Net.Sock ets.SocketExcep tion: 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 10.89.22.51:25
at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t, SocketAddress socketAddress)
at System.Net.Sock ets.Socket.Inte rnalConnect(End Point remoteEP)
at System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketSt ate state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.Serv icePoint.GetCon nection(PooledS tream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
at System.Net.Pool edStream.Activa te(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDel egate asyncCallback)
at System.Net.Pool edStream.Activa te(Object owningObject, GeneralAsyncDel egate asyncCallback)
at System.Net.Conn ectionPool.GetC onnection(Objec t owningObject, GeneralAsyncDel egate asyncCallback, Int32 creationTimeout )
at System.Net.Mail .SmtpConnection .GetConnection( String host, Int32 port)
at System.Net.Mail .SmtpTransport. GetConnection(S tring host, Int32 port)
at System.Net.Mail .SmtpClient.Get Connection()
at System.Net.Mail .SmtpClient.Sen d(MailMessage message)
This error has started recently.
Comment