26 Jan 2017 by Afzaal Ahmad Zeeshan
Your code looks fine to me, and it should send the email (and of course, should connect to the server), did you try connecting through the default TCP port for SMTP communication? That is 25, consider trying that one out, using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 25))Other than...