@2bit/mailer
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@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"
        }
    ]
});

Readme

Keywords

Package Sidebar

Install

npm i @2bit/mailer

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

5.94 kB

Total Files

5

Last publish

Collaborators

  • 2bit