mailhook

0.0.1 • Public • Published

mailhook

A Node.js library to setup hooks to trigger Webhooks then receive emails.

How-to

Initialize a Mailhook instance.

var Mailhook = require('mqtthook');
var mailhook = new Mailhook('user', 'password', 'host');

Trigger a Webhook to do something when receive emails from the specific email mail@your-host.com sender.

mailhook.hook("mail@your-host.com")
        .trigger('https://webhook.fake/hooks/3345678');

Package Sidebar

Install

npm i mailhook

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • evanxd