stratumn-sendgrid
v1.0.0
Published
Sendgrid helper to be used in a Stratumn Agent
Downloads
1
Readme
stratumn-sendgrid
Sendgrid helper to be used in a Stratumn Agent
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