Set up SMTP client using Google Workspace

WordPress Cheatsheet

Setup SMTP client using Google Workspace

Register a Google app

  1. Log in to Google Cloud Console.
  2. Create new project.
    1. Click Select a project > Create New Project.
      setupGoogleApp_GoogleWorkspace_Wordpress
    2. Name new project, then click Create.
      nameProject_GoogleCloud_SMTPConnector_Wordpress
    3.  After project is created, click Select Project.
      selectNewProject_GoogleCloud_SMTPConnector_Wordpress
  3.  Enable GMAIL API.
    1. Select Hamburger menu > APIs & Services > Library.
    2. Search for and select GMAIL API.
      Note: Can also search for GMAIL api or select Email in left menu.
      gmailAPI_enableAPI_GoogleCloud_Wordpress
    3.  Click Enable.
      enableGMAILAPI_GoogleCloud_Wordpress
  4. Set up OAuth.
    1. Under APIs & Services, click OAuth Consent Screen.
      clickOAuthConsentScreen_GoogleCloud_Wordpress
    2.  Under OAuth User Type, select External, then click Create.
    3. Under App information, add App name, then select User support email.
      appInformation_OAuth consent screen_GoogleApp_GoogleCloud_Wordpress
    4. Under App domain, add domain.
      1. Under Authorized domains, click Add domain, then enter domain where app will be deployed. 
        Note: Application home page, privacy policy, and service links are optional.
      2. Under Developer contact information, add email and click Save and Continue.
    5.  Under Scope, input is optional. Click Save and Continue.
    6. Under Test users, input is optional. Click Save and Continue.
  5. Create OAuth client Credentials.
    1. Under APIs & Services, click Credentials.
    2. Select Create Credentials.
      createCredentials_SMTPConnecto_GoogleCloud_Wordpress
    3.  Under Application type, select Web application, then under Name, give your OAuth ID a name.
    4. Under Authorized Javascript origins, input is optional.
    5. Under Authorized redirect URIs,
      1. Click Add URI. then enter the URI and click Create.
        Note:
        FluentSMTP: https://fluentsmtp.com/gapi/
        addAuthorizedRedirectURI_SMTPConnector_GoogleCloud_Wordpress
  6. Copy new Client ID and Client Secret.
    copyClientIDAndSecret_Credentials_SMTPConnector_GoogleCloud_Wordpress
  7. Continue to Complete WordPress SMTP tool form section below.

Complete WordPress SMTP tool form

  1. Paste Client ID and Client Secret into corresponding WordPress SMTP tool fields.
    pasteClientIDAndSecret_Credentials_SMTPConnector_GoogleCloud_Wordpress
  2.  Add From Email and From Name.
    Note: The From email must be the same email used to register Google App.
    fromEmail_SMTPConnector_Wordpress
  3. Click Authenticate with Google and Get Access Token.
    authenticateWithGoogle_getAccessToken_SMTPConnector_Wordpress
  4. Sign in to linked Google account.
  5. Copy returned access code and pasted into Access Token field.
  6. SMTP client setup complete. Send test email.

Your email address will not be published. Required fields are marked *