oddvoter-notifier

1.1.1 • Public • Published

OddVoter Notifier

Embeddable notifications engine that relies on MongoDB for job queuing and scheduling. Powered by rschmukler/agenda

Mailer Configuration

Uses NodeMailer package for email handling. Available services are the ones listed on the nodemailer-wellknown repo.

SendGrid Example

var notifier = require('oddvoter-notifier')({
  mailer: {
    service: 'sendgrid',
    auth: {
      user: 'fake-sendgrid-user!@sendgrid.com',
      pass: 'fake-sendgrid-pass'
    }
  }
})

Gmail Example

var notifier = require('oddvoter-notifier')({
  mailer: {
    service: 'gmail',
    auth: {
      user: 'fake-gmail-user!@gmail.com',
      pass: 'fake-gmail-pass'
    }
  }
})

Direct Transport Example

Not recommended for production. Using direct transport is not reliable as outgoing port 25 used is often blocked by default. Additionally mail sent from dynamic addresses is often flagged as spam. You should really consider using a SMTP provider.

var notifier = require('oddvoter-notifier')()

Package Sidebar

Install

npm i oddvoter-notifier

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • oddvoter