1.0.1 • Published 5 years ago
noodle-email v1.0.1
noodle-email
Overview
This package is just a wrapper around nodemailer
that is setup for sending emails using gmail SMTP.
Usage
// app.js
import NoodleMailClient from 'noodle-email'
const mailClient = new NoodleMailClient({
"user": "exampleEmailAddress",
"pass": "examplePassword"
})
mailClient.setFrom('exampleFromAddress@gmail.com')
mailClient.setTo('exampleToAddress@gmail.com')
const subject = 'ExampleSubject'
const body = 'ExampleBody'
async function main() {
await sender.sendMail(subject, body)
}
main()