This plugin provides a Mailchimp Transactional integration for Craft CMS.
This plugin requires Craft CMS 4.0.0+ or 5.0.0+.
You can install this plugin from the Plugin Store or with Composer.
Go to the Plugin Store in your project’s Control Panel and search for “Mailchimp Transactional”. Then click on the “Install” button in its modal window.
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 perfectwebteam/craft-mailchimp-transactional
# tell Craft to install the plugin
./craft install/plugin craft-mailchimp-transactional
Once Mailchimp Transactional is installed:
- Go to Settings → Email.
- Make sure that the System Email Address is set to an email for which the domain is a verified Sending Domain.
- Change the Transport Type setting to Mailchimp Transactional.
- Enter your API Key from the Mailchimp Transactional Settings page.
- Optionally set the Subaccount from the Mailchimp Transactional Subaccounts page.
- Optionally set the Template Slug from the Mailchimp Transactional Templates page.
- Click Save.
Tip: The API Key, Subaccount and Template Slug settings can be set using environment variables. See Environmental Configuration in the Craft docs to learn more about that.
Register Return-Path domains in Mandrill: https://mandrillapp.com/settings/tracking-domains to allow for a custom Return-Path as described here: https://mailchimp.com/developer/transactional/docs/authentication-delivery/#custom-return-path-domains
Configure the Return-Path via your config/mailchimp-transactional.php
config file by adding:
<?php
return [
'returnPaths' => [
'domain.com' => 'mandrill.domain.com'
]
];
Brought to you by Perfect Web Team