0.0.1 • Published 3 years ago

@2bit/mailer v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@2bit/mailer

thin wapper of nodemailer

How to use

import Mailer from '@2bit/mailer';

const mailer = new Mailer({
    user: "you@example.com",
    pass: "SMTP_PASSWORD",
});

mailer.send("TITLE", "THIS\nIS\nBODY", {
    category: "topic", // added alias address like you+topic@example.com
    cc: ["cc@example.com", "other@example.com"],
    bcc: ["bcc@example.com"],
    attachments: [
        {
            path: "/path/to/file",
            name: "filename"
        }
    ]
});