0.1.2 • Published 2 years ago

@skulpture/mailedit v0.1.2

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

About

A wrapper around Nodemailer to send HTML emails

Uses Pug and Nodemailer to send HTML emails.

Usage

  1. Install MailedIt

    $: npm i -S @skulpture/mailedit

  2. Import the makeMailedIt function

    makeMailedIt requires a configuration object which has the following interface:

    { template: string, details: SenderDetails }

    template is the Pug template to use

    details is the details of the SMTP server

    // In your TypeScript or JavaScript file

    import makeMailedIt from '@skulpture/mailedIt'

    const mailedIt = makeMailedIt(configuration)

  3. Use the resulting MailedIt object

    mailedIt.post(envelope, transform)

    envelope is the mail envelope you want to send

    transform an optional function to transform the data to the shape required for the Pug template

Contribution

Contributions are welcome, just make a pull request

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago