0.0.1 • Published 7 years ago

mailhook v0.0.1

Weekly downloads
12
License
-
Repository
github
Last release
7 years ago

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');