My code for sending email through Gmail\'s smtp:
SmtpClient client = new SmtpClient(\"smtp.gmail.com\", 587);
client.EnableSsl = true;
client.UseDefaultCrede
It seems your connection is rejected by the SMTP server either because it is not SSL enabled or the credentials are incorrect. You would need to setup SSL and network credentials in your web.config as below:
More info is available in this SO discussion: C# - Can't send mail in WIndows Azure via Gmail SMTP