Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 736 Bytes

GMAIL.md

File metadata and controls

31 lines (22 loc) · 736 Bytes

Setup Google auth token for sending emails

Get Google Auth Token

1. Get Google Auth Credentials:

  1. Create Google APi Project
  2. Enable Gmail API
  3. Create OAuth 2.0 client
  4. Use Desktop client
  5. Add the following scopes:
  6. Download the credentials JSON file and add it to the .data/google-credentials.json

2. Generate Google Auth Token:

cm-notify setup:google
  • Script will open a browser window to authenticate the user.
  • After authentication, the token will be saved in the google-token.json file.

3. Environment Variables

# Email sender env
# Only needed if Teams email approach is used
EMAIL_FROM=gmailuser@googleworkspacedomain.com