jsreactor-channel-sendgrid

1.0.75 • Public • Published

Install

$ npm install jsreactor-channel-sendgrid @coderofsalvation/jsreactor 

then include it as usual:

var BRE = require('jsreactor')

var b = BRE(/* myBackendAdapter */ )
var inputChannel     = require('jsreactor/channel/Input)
var sendgridChannel  = require('jsreactor-channel-sendgrid')
new inputChannel(b)
new sendgridChannel(b)
b.init() // first init
    
b.run({email:"foo@flop.com"}) // data will be passed thru the business rules engine
                              // and conditionally triggers actions

for more see jsreactor module and see the test

Environment vars

Notes

If you want to send attachements just pass {email:"foo@flop.com",attachments:[]} (see docs for attachment-format)

Readme

Keywords

none

Package Sidebar

Install

npm i jsreactor-channel-sendgrid

Weekly Downloads

0

Version

1.0.75

License

ISC

Unpacked Size

14.4 kB

Total Files

8

Last publish

Collaborators

  • coderofsalvation