gmail-common-utils
v1.0.2
Published
some reusable modules
Downloads
11
Maintainers
Readme
Example Usage
const commonUtils = require('gmail-common-utils');const toAddress = ['[email protected]'];
const fromAddress = '[email protected]';
const subject = 'New Hypothesis';
const emailText = 'Hey Bill, How are you?;
const clientSecret = './path/to/secret/here.json';commonUtils.sendEmail(clientSecret, toAddress, fromAddress, subject, emailText);You will need a G-Mail API token
source: https://developers.google.com/gmail/api/quickstart/nodejs
