This error indicates that your application is unable to connect with your mail server. you need to check with your mail server, is everything working fine?
you need to check also that you are passing server name and port in right way.
Wrong:
- client.Host = "mail.someco.com:10000";
Correct:
- clicnt.Host = "mail.someco.com"; client.Port = 10000;
and if you are using some other server like you are trying to send the email using gmail. then check your port You can try this code.