node package manager

vern-notify-enterprise

Copyright Notice

VERN is copyright 2014 uh-sem-blee, Co. Built by typefoo.

License

You may not use, alter, or redistribute this code without permission from uh-sem-blee, Co.

VERN - Notify Service

Handles Email, SMS, Push Notifications, and vern-2-vern communications

  • Note that email is the only one complete at this time *

Configuration Requirements

email_notifications: true,
development: {
  use_smtp: true,
  smtp_service: 'SMTP',
  smtp_host: 'email-smtp.us-east-1.amazonaws.com',
  smtp_port: 465,
  smtp_secure: true,
  smtp_username: 'AWS_APIKEY',
  smtp_password: 'AWS_APISECRET',
  email_from_name: 'Website Admin',
  email_from: 'hello@website.io',
  mailer_defaults: {} // a key/value pair to be applied to all email templates 
}

New VERN Controllers

  • AWSController

New VERN Models

  • AWSResourceModel

Example

  $vern.controllers.mailer.configure().build([{
    to: 'john@uh-sem-blee.com',
    subject: 'A test from vern-notify',
    template: 'testing',
    vars: {
      test: 'ABCDEFG'
    }
  },
  {
    to: 'john@typefoo.com',
    subject: 'A test from vern-notify',
    template: 'testing',
    vars: {
      test: '1234567890'
    }
  }]).then(function(mailer) {
    console.log(mailer.templates);
    mailer.send().then(function(res) {
      console.log(res);
    }).fail(function(err) {
      console.log(err.stack);
    });
  }).fail(function(err) {
    console.log(err);
  });