strapi-provider-email-mj
v3.0.5
Published
Mailjet provider for strapi email plugin
Downloads
85
Maintainers
Readme
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
| Variable | Type | Description | Required | Default |
| ----------------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- |
| provider | string | The name of the provider you use | yes | |
| providerOptions | object | Will be directly given to the require('node-mailjet')
. Please refer to node-mailjet doc. | yes | |
| settings | object | Settings | no | {} |
| settings.defaultFrom | string | Default sender mail address | no | undefined |
| settings.defaultReplyTo | string | array | Default address or addresses the receiver is asked to reply to | no | undefined |
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: '[email protected]',
defaultReplyTo: '[email protected]',
},
},
// ...
});