@mirrorprod/strapi-email-provider-ep
v1.0.3
Published
Strapi email provider for mirror Electric Pigeon service
Downloads
96
Readme
Strapi email provider for Electric Pigeon
Custom strapi email provider to use mirror mail service
Links
Installation
# using yarn
yarn add @mirrorprod/strapi-email-provider-ep
# using npm
npm install @mirrorprod/strapi-email-provider-ep --save
Configuration
| Variable | Type | Description | Required | Default | | ----------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------- | --------- | | provider | string | The name of the provider you use | yes | | | providerOptions | object | Provider options | yes | | | providerOptions.apiKey | object | Api key given to the function setApiKey. | yes | | | settings | object | Settings | no | {} | | settings.defaultFrom | string | Default sender mail address | no | undefined |
:warning: The Shipper Email (or defaultfrom) may also need to be changed in the
Email Templates
tab on the admin panel for emails to send properly
Example
Path - config/plugins.js
module.exports = ({ env }) => ({
// ...
email: {
config: {
provider: '@mirrorprod/strapi-email-provider-ep',
providerOptions: {
apiKey: env('MAIL_API_KEY'), // you have to add this in your .env file
},
settings: {
defaultFrom: '[email protected]'
},
},
},
// ...
});