fastify-mailgun
1.0.0 • Public • Published fastify-mailgun

Fastify plugin that adds MailGun support with incoming webhooks.
Under the hood the mailgun-js module is used.
Installation
$ npm install fastify-mailgun
Usage
fastify.register(require('fastify-mailgun'), {
prefix: '/mailgun',
apiKey: 'apikey-...',
domain: 'mydomain.com',
webhookHandler: async function (data) {
const storedMessage = await fastify.mailgun.getStoredMessage({ url: data.storage.url })
await fastify.mailgun.client.messages().send(...)
return true
}
})
Maintainers
Osmond van Hemert

Contributing
If you would like to help out with some code, check the details.
Not a coder, but still want to support? Have a look at the options available to donate.
License
Licensed under MIT.
Install
npm i fastify-mailgun
Weekly Downloads