0.1.1 • Published 5 years ago

moleculer-mailgun v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

moleculer-mailgun

Build Status Coverage Status Codacy Badge Maintainability David Known Vulnerabilities

Downloads FOSSA Status

How to use it

const MailgunMixin = require('moleculer-mailgun')

module.exports = {
  name: 'mailgun',
  mixins: [MailgunMixin],
  settings: {
    mailgun: {
      /** @type {String} Mailgun apiKey (https://app.mailgun.com/app/dashboard). */
      apiKey: '',
      /** @type {String} Mailgun region : US/EU (Default US). */
      region: MailgunMixin.regions.US,
      /** @type {String} Mailgun domain (Can be override by action meta). */
      domain: '',
      /** @type {Object?} Additional options for mailgun contructor */
      options: { },
      /** @type {Number} Max "To" by batch requests (It will chunk list by that, Mailgun limit : 1000) */
      bySendingBatch: 950,
      /** @type {Object?} Defaults options for mailgun send mail */
      defaults: { },
      /** @type {Object?} Webhooks handler (Placeholder {event} for event type) */
      webhooks: {
        /** @type {String?} Action to call after webhooks validated */
        action: undefined,
        /** @type {String?} Event to emit after webhooks validated */
        event: undefined
      }
    }
  }
}
0.1.1

5 years ago

0.1.0

5 years ago

0.0.21

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago