Skip to content

dynolabs/strapi-provider-mailersend

Repository files navigation

Strapi provider mailersend

MailerSend Provider for Strapi

Provider plugin for send emails using mailersend in Strapi.

Version License

The Strapi Provider MailerSend Plugin is a custom provider plugin for Strapi which allows to send emails using your mailersend with strapi email plugin.

⚙️ Installation

To install the The Strapi Provider MailerSend Plugin, simply run one of the following command:

npm install strapi-provider-mailersend
yarn add strapi-provider-mailersend

⚡️ Usage

Configurations

Variable Type Description Required Default
provider string The name of the provider you use yes
providerOptions object Options for mailersend provider yes
providerOptions.apiKey string API Key of your mailersend account 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 or config/plugins.ts

module.exports = ({ env }) => ({
  // ...
  email: {
    config: {
      provider: 'strapi-provider-mailersend',
      providerOptions: {
        apiKey: env('MAILERSEND_API_KEY'), // Required
      },
      settings: {
        defaultFrom: 'from@example.com',
        defaultReplyTo: 'replyto@example.com',
      },
    },
  },
  // ...
});

👍 Contribute

If you want to say Thank You and/or support the active development of Strapi Provider MailerSend:

  1. Add a GitHub Star to the project.
  2. Support the project by donating a cup of coffee.

🧾 License

This plugin is licensed under the MIT License. See the LICENSE file for more information.