DonorWise TM
Enhanced communication with donors, enhanced ministry credibility...

What are the SMTP settings for Gmail?: Revision #5

It is our pleasure to provide this software free of charge to help you in your ministry.  We're so thankful for our partners who make this possible!

About TntWare

You are currently reviewing an older revision of this page. Go to current version

What are the SMTP settings for Gmail?

SMTP Server:  smtp.gmail.com
Port:  587
SSL/TLS:  Explicit

Be sure to enter your username and password.

Then click "Test these settings!" to send a test email.

Google Specific Help

You may have to make an adjustment to your Gmail security settings. 

If Google reports an error message, it might be a security issue.  If you believe this to be the case, you have a few options:

If you use 2-Step Verification, create an "App Password" specific to DonorWise:
         https://support.google.com/accounts/answer/185833

If you do not use 2-Step Verification 2, you must tell Google to allow "Less Secure Apps".  (Don't worry, DonorWise is connecting to Google over a secure/encrypted connection.  Google claims it's "less secure" because your Google password is being stored in DonorWise.

At this URL (https://www.google.com/settings/security/lesssecureapps), where it says "Access for less secure apps", change the option to "Turn on".

----------------------------------------------------------------------

More Google Specific Help  (from stackoverflow.com)

When you try to send mail from code and you find the error "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required", than the error might occur due to following cases.

case 1: when the password is wrong

case 2: when you try to login from some App

case 3: when you try to login from the domain other than your time zone/domain/computer (This is the case in most of scenarios when sending mail from code)

There is a solution for each

solution for case 1: Enter the correct password.

solution 1 for case 2: go to security settings at the followig link https://www.google.com/settings/security/lesssecureapps and enable less secure apps . So that you will be able to login from all apps.

solution 2 for case 2:(see https://stackoverflow.com/a/9572958/52277) enable two-factor authentication (aka two-step verification) , and then generate an application-specific password. Use that newly generated password to authenticate via SMTP.

solution 1 for case 3: (This might be helpful) you need to review the activity. but reviewing the activity will not be helpful due to latest security standards the link will not be useful. So try the below case.

solution 2 for case 3: If you have hosted your code somewhere on production server and if you have access to the production server, than take remote desktop connection to the production server and try to login once from the browser of the production server. This will add excpetioon for login to google and you will be allowed to login from code.

But what if you don't have access to the production server. try the solution 3

solution 3 for case 3: You have to enable login from other timezone / ip for your google account.

to do this follow the link https://g.co/allowaccess and allow access by clicking the continue button.

And that's it. Here you go. Now you will be able to login from any of the computer and by any means of app to your google account.

----------------------------------------------------------------------