Package Exports
- strapi-provider-plugin-mandrill
- strapi-provider-plugin-mandrill/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strapi-provider-plugin-mandrill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Strapi Mandrill plugin
Simple Mandrill plugin for Strapi 4
Installation
npm install strapi-provider-plugin-mandrill
or
yarn add strapi-provider-plugin-mandrill
Dependencies
We are using @mailchimp/mailchimp_transactional
package.
So for all send message we'll use this post: https://mailchimp.com/developer/transactional/api/messages/
Add Pluggin
Add on config/pluggin.ts file the configuration bellow
email: {
config: {
provider: "strapi-provider-plugin-mandrill",
providerOptions: {
apiKey: process.env.MANDRILL_API_KEY,
},
settings: {
defaultFrom: "contact@email.com",
defaultName: 'Test',
defaultReplyTo: 'test@email.com',
defaultHtml: 'Test',
defaultText: 'Test',
},
},
}