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({})hostdefault is gmailsmtp.gmail.compostdefault is587usernameyour email usernamepasswordyour email passwordnamehow you want your name to appearemailaddress emails will be sent from
.send()
email.send({})toaddress of recipientsubjectsubject of emailbodybody of email