1.0.3 • Published 4 years ago
@surfingpikachu/email v1.0.3
a simple email client that uses nodemailer
const Email = require("@surfingpikachu/email")
const email = new Email({
host: "smtp.gmail.com",
port: 587,
username: "johnsmith@gmail.com",
password: "1234abcd",
name: "John Smith",
email: "johnsmith@gmail.com"
})
email.send({
to: "drakefan69@yahoo.com",
subject: "Hello",
body: "I love you"
})
config
const email = new Email({})
host
default is gmailsmtp.gmail.com
post
default is587
username
your email usernamepassword
your email passwordname
how you want your name to appearemail
address emails will be sent from
.send()
email.send({})
to
address of recipientsubject
subject of emailbody
body of email