@ryanforever/email
v1.0.6
Published
a simple email client using nodemailer
Downloads
1
Readme
a simple email client that uses nodemailer
const Email = require("@ryanforever/email")
const email = new Email({
username: "[email protected]",
password: "1234abcd",
name: "John Smith",
email: "[email protected]",
})
email.send({
to: "[email protected]",
subject: "Hello",
body: "I love you"
})
config
// setup
const email = new Email({
host, // default is gmail "smtp.gmail.com"
port, // default is 587
username, // your email username
password, // your email password
name, // how you want your name to appear
email // address emails will be sent from
})
// send an email
email.send({
to, // address of recipient
subject, // subject of email
body // body/text of email
})