pingado-mailer
mailer for pingado project
Last updated 2 years ago by lunhg .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install pingado-mailer 
SYNC missed versions from official npm registry.

Pingado-mailer

A nodemailer promise to use for nor notifications.

Installing

$ npm install pingado-mailer

Testing

$ git clone https://wwww.github.com/lunhg/pingado-mailer
$ cd pingado-mailer && npm install
$ npm test

Usage

  • Create a new instance if a mailer with provide api keys and domain:

    let mailer = require('pingado-mailer')( api_key: <API_KEY>, domain: <DOMAIN> })

  • Now you can send mails as promises

    mailer.send({ from: 'Mailgun postmaster <postmaster@'+<DOMAIN>+'>', to: <TO>:,
    subject: 'Hello', text: 'Testing some Mailgun awesomeness!' }).then(function(body){ console.log(body) }).catch(function(err){ console.log(err) })

Current Tags

  • 0.0.4                                ...           latest (2 years ago)

4 Versions

  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |