Skip to content

lunhg/pingado-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: })

  • Now you can send mails as promises

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

About

Mailer utils for pingado project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published