stratumn-sendgrid

1.0.0 • Public • Published

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

/stratumn-sendgrid/

    Package Sidebar

    Install

    npm i stratumn-sendgrid

    Weekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • ndouchin