3.0.5 • Published 4 years ago

strapi-provider-email-mj v3.0.5

Weekly downloads
26
License
MIT
Repository
github
Last release
4 years ago

strapi-provider-email-mj

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-mj

# using npm
npm install strapi-provider-email-mj --save

Configuration

VariableTypeDescriptionRequiredDefault
providerstringThe name of the provider you useyes
providerOptionsobjectWill be directly given to the require('node-mailjet'). Please refer to node-mailjet doc.yes
settingsobjectSettingsno{}
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: 'mailjet-mj',
    providerOptions: {
      apiKey: env('MAILJET_API_KEY'),
      secretKey: env('MAILJET_SECRET_KEY'),
    },
    settings: {
      defaultFrom: 'myemail@prodiver.com',
      defaultReplyTo: 'myemail@provider.com',
    },
  },
  // ...
});