WindowsService
try { var client = new SmtpClient(smtp.gmail.com,587) { EnableSsl = true, Credentials = new NetworkCredential(mamise@gmail.com,passwd) }; client.Send(rprise@gmail.com,girish@gmail.com,Test,Test); }
From page: If you tried configuring your SMTP server on port 465 (with SSL) and port 587 (with TLS), but are still having trouble sending mail, try configuring your SMTP to use port 25 (with SSL).
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)