- Create Google APi Project
- Enable Gmail API
- Create OAuth 2.0 client
- Use Desktop client
- Add the following scopes:
- Download the credentials JSON file and add it to the
.data/google-credentials.json
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.
# Email sender env
# Only needed if Teams email approach is used
[email protected]