1.0.0 • Published 8 years ago

stratumn-sendgrid v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

stratumn-sendgrid

Sendgrid helper to be used in a Stratumn Agent

build status dependency status

Installation

npm install --save stratumn-sendgrid

Usage

In your agent:

const EmailHelper = require('./stratumn-sendgrid');

module.exports = {
  requestSignatures: function(data) {
    EmailHelper.send({
      to: data.email,
      from: data.requesterEmail,
      subject: data.fileName,
      text: data.text
    })
      .then(() => this.append())
      .catch(err => this.reject(err));
  }
};
``

## Credits
[Stratumn Team](https://github.com/stratumn/)

## License

MIT