1. In Developer Studio , Click on Configure -> Integration -> Email -> Email Accounts.
2. Click on Create and enter the account details.
3 In Account ID , enter class name and select email provider as Gmail.
4. Go to the google account ( the email account entered in user ID) and click on manage your account.
5. Click on settings and turn on less secure app access
6. Finally navigate back to email accounts and check the connectivity.