Hello
Trying to send email via smtp client.
When using smtp.gmail.com everything works good.
But when i setting my webhost server getting this error.
"Unable to read data from the transport connection: net_io_connectionclosed."
I tried to connect with telnet to this server if its secure (port 587) connected without problem.
but when trying to connect to port 25 getting same error.
all day lost :(
Any help?
Thanks in advance..
// Send the email
SmtpClient client = new SmtpClient();
client.Host = "smtp.gmail.com";
client.Port = 587;
client.UseDefaultCredentials = false;
client.Credentials = new System.Net.NetworkCredential("*****@gmail.com", "******");
client.EnableSsl = true;
client.Send(email);
Go to the complete details ...