Gmail Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required
https://www.google.com/settings/u/1/security/lesssecureapps Its a security issue, Gmail by default prevents access for your e-mail account from custom applications. You can set it up to accept the login from your application. After Logging in to your mail, CLICK HERE This will take you to the following page Don't forget to click the back arrow near the title Less Secure Apps after Turning ON .