@2bit/mailer
v0.0.1
Published
thin wrapepr of nodemailer
Readme
@2bit/mailer
thin wapper of nodemailer
How to use
import Mailer from '@2bit/mailer';
const mailer = new Mailer({
user: "[email protected]",
pass: "SMTP_PASSWORD",
});
mailer.send("TITLE", "THIS\nIS\nBODY", {
category: "topic", // added alias address like [email protected]
cc: ["[email protected]", "[email protected]"],
bcc: ["[email protected]"],
attachments: [
{
path: "/path/to/file",
name: "filename"
}
]
});
