Hello everyone.
I had a problem when I am going to send an e-mail.
I have the following code:
this.m_oSmtpCliente.Host = this.m_sSMTPSERVER;
this.m_oSmtpCliente.Port = 587;
this.m_oSmtpCliente.EnableSsl = true;
this.m_oSmtpCliente.DeliveryMethod = SmtpDeliveryMethod.Network;
this.m_oSmtpCliente.UseDefaultCredentials = false;
this.m_oSmtpCliente.Credentials = new System.Net.NetworkCredential(this.m_sUser, this.m_sPass);
this.m_oSmtpCliente.Send(oMessage);
When I execute the last line. I crash and give me the following error:
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 209.85.229.109:587
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)\r\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
I don´t know what happend. I view a lot of codes and I was the same things.
Thank you very much.