This is a sample script for sending e-mails from gmail using Nodemailer. In order to use this, please retrieve the folloing parameters before run this script.
- gmail address
- client ID
- client Secret
- Refresh token
- Please include
https://mail.google.com/
in the scope.
- Please include
- Enable gmail API at API console.
- Install Nodemailer