noodle-email
v1.0.1
Published
A package for sending mail
Downloads
7
Readme
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('[email protected]')
mailClient.setTo('[email protected]')
const subject = 'ExampleSubject'
const body = 'ExampleBody'
async function main() {
await sender.sendMail(subject, body)
}
main()