Skip to content

studioespresso/craft-mailersend

Repository files navigation

Postmark icon

MailerSend for Craft CMS

This plugin provides a MailerSend integration for Craft CMS.

Requirements

This plugin requires Craft CMS 4.0 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “MailerSend”. Then click on the “Install” button in its modal window.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require studioespresso/craft-mailersend

# tell Craft to install the plugin
./craft plugin/install mailersend

Setup

Once MailerSend is installed:

  1. Go to SettingsEmail.
  2. Change the Transport Type setting to MailerSend. Also, ensure that your System Email Address in your Craft Email Settings matches your confirmed Sender Signature email address in MailerSend.
  3. Enter your Server Token (which you can get from your integrations page under “API Tokens”).
  4. Click Save.

Tip: The Server Token setting can be set using environment variables. See Environmental Configuration in the Craft docs to learn more about that.