0.4.0 • Published 3 years ago

@sancsoft/strapi-provider-email-mailgunjs v0.4.0

Weekly downloads
173
License
SEE LICENSE IN LI...
Repository
github
Last release
3 years ago

strapi-provider-email-mailgunjs

Resources

Links

Prerequisites

You need to have the plugin strapi-plugin-email installed in you Strapi project.

Installation

# using yarn
yarn add strapi-provider-email-mailgunjs@npm:@sancsoft/strapi-provider-email-mailgunjs

# using npm
npm install strapi-provider-email-mailgunjs@npm:@sancsoft/strapi-provider-email-mailgunjs --save

Configuration

VariableTypeDescriptionRequiredDefault
providerstringThe name of the provider you useyes
providerOptionsobjectWill be directly given to the require('mailgun.js'). Please refer to mailgun.js doc.yes
settingsobjectSettingsyes{}
settings.domainstringMailgun sending domainyes
settings.defaultFromstringDefault sender mail addressnoundefined
settings.defaultReplyTostring | arrayDefault address or addresses the receiver is asked to reply tonoundefined

Example

Path - config/plugins.js

module.exports = ({ env }) => ({
  // ...
  email: {
    provider: 'mailgunjs',
    providerOptions: {
      key: env('MAILGUN_API_KEY')
    },
    settings: {
      domain: env('MAILGUN_DOMAIN'), // Required
      defaultFrom: 'myemail@protonmail.com',
      defaultReplyTo: 'myemail@protonmail.com',
    },
  },
  // ...
});