A wrapper for emailjs
Install
$ npm install --save emailjs-gmail
Initialize
// initialize to create the `send` functionconst send = processenvGMAIL_USERNAME processenvGMAIL_PASSWORD;
Note: Less secure app access must be enabled for the Gmail account sending mail.
Examples
Simple
// send a message to an email (async) ;
Callback
// send a message to an email (async) ;
Promise
// send a message to an email (async) ;
Async/Await
async { // send a message to an email (async) await ;};