SyntaxFix
Write A Post
Hire A Developer
Questions
Gmail requires you to use a secure connection. This can be set in your web.config like this:
<network host="smtp.gmail.com" enableSsl="true" ... />
OR
The SSL should be enable on the webserver as well. Refer following link
Enabling SSL on IIS 7.0