@fabrix/generics-mandrill

Generic: mandrillapp.com for Spool-generics

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@fabrix/generics-mandrill
1.1.04 years ago4 years agoMinified + gzip package size for @fabrix/generics-mandrill in KB

Readme

generics-mandrill
!Gittergitter-imagegitter-url !NPM versionnpm-imagenpm-url !Build Statusci-imageci-url !Test Coveragecoverage-imagecoverage-url !Dependency Statusdaviddm-imagedaviddm-url !Follow @FabrixApp on Twittertwitter-imagetwitter-url
Generic Email Provider for Mandrillapp.com supplied by Spool-generics.
Looking for Spool-Generics?

Install

$ npm install --save @fabrix/generics-mandrill

Configure

// config/generics.ts
export const generics = {
  // make the key mandrill, alternatively make the key email_provider to be the default email provider
  mandrill: {
      adapter: require('@fabrix/generic-mandrill').MandrillGeneric,
      config: {
          // Mandrill API key
          key: process.env.MANDRILL_APIKEY,
          // Host name for sending eg. cali-style.com
          host: process.env.MANDRILL_HOST,
          // Protocol for sending eg. https or http
          protocol: process.env.MANDRILL_PROTOCOL,
          // The ReplyTo field in Mandrill templates
          reply_to: process.env.MANDRILL_REPLY_TO
      }
  }
}