Send Gmail
Simple example on how to send an email using the gmail platform using Auth2. No dependencies other than node.
to use:
- Clone this repo.
- Follow the instructions in https://developers.google.com/identity/protocols/oauth2/service-account to obtain 'public/private key pair' and save it to key.json .
- Change the
EMAIL_TOandEMAIL_FROMat the top of this repo index.ts - Run
node index.ts