Skip to content

Documentation

Zach Schneider edited this page Apr 21, 2021 · 1 revision

Obtaining API Keys

  1. Go to the Google Cloud Console and create a new project.
  2. Give your project a name, and click Create. Wait for your project to be created.
  3. Click the Create credentials dropdown and choose OAuth client ID
  4. You may be asked to configure the OAuth consent screen
    1. Set the Application name
    2. Add your domain to the Authorized domains list
    3. Configure any other option as you like. More info here.
  5. Select Web application as the Application type, and give it a name.
  6. Copy the Authorized Redirect URI from the backend Gmail configuration page.
  7. Add that URI as an Authorized redirect URI and click Create
  8. Look for your new credential in the OAuth 2.0 Client IDs table, and click the download button to download your credentials in JSON format.
  9. Click on Library in the sidebar and search for "Gmail". Click Enable to enable access to the Gmail API.
  10. Upload the file you downloaded to the backend Gmail configuration page and save the settings. Reload the page to show the Authorize button.
  11. Click the Authorize button to open the Google consent page. Continue to select the account you want to send email with and consent to sending email on your behalf.
    • You may encounter a screen that says "This app isn't verified". This is referring to the OAuth consent screen that you created, and can be bypassed by clicking Advanced and then Go to <domain> (unsafe).
Clone this wiki locally