Authentication for Google SMTP Settings

Create authorization credentials

Any application that uses OAuth 2.0 to access Google APIs must have authorization credentials that identify the application to Google's OAuth 2.0 server. The following steps explain how to create credentials for your project. Your applications can then use the credentials to access APIs that you have enabled for that project.

  1. Google App Registration URL: https://console.cloud.google.com/.
  2. From the project drop-down, select an existing project, or create a new one by clicking on NEW PROJECT.
  3. In the sidebar hover the mouse pointer over the "APIs & Services", click OAuth consent screen.
    The OAuth consent screen:: App information page is displayed.
  4. In the App information section, enter the required field information. App name*, User support email*, Authorized domains, and Developer contact information, then click Save & Continue.
    The Save & Continue :: Scopes page is displayed.
  5. Under Scopes section, ADD SCOPES required information.
  6. In the sidebar hover the mouse pointer over the "APIs & Services", click Credentials.
    The APIs & Services :: Credentials page is displayed.
  7. In the Credentials tab, click the +CREATE CREDENTIALS, from the drop-down list, choose OAuth client ID.
    The +CREATE CREDENTIALS :: Create OAuth client ID page is displayed.
  8. Enter the required field information, for Application type* select Web application and specify Name* then click Save.
  9. Displays confirmation of OAuth client Created, with Your Client ID and Your Client Secret.
  10. Copy the Client ID and Client Secret for Authentication of SMTP Server Settings.
  11. Authorization endpoint URL: https://accounts.google.com/o/oauth2/v2/auth.
  12. Token endpoint URL: https://oauth2.googleapis.com/token.