The Send Emails with Mandrill plugin sends emails that are generated by WordPress through Mandrill, a transactional email service powered by MailChimp …
Did you find this plugin helpful? Please consider leaving a 5-star review.
Note: This is a forked version of the now unsupported wpMandrill plugin. The notes below are copied over from the original plugin and will be updated as relevant updates become available. Please help by contributing to the GitHub repository Send Emails With Mandrill on GitHub
This plugin uses Mandrill API to send outgoing emails, with or without attachments, from your WordPress installation. It replaces the wp_mail function included with WordPress.
Emails are tracked and automatically tagged for statistics within the Mandrill Dashboard. You can also add general tags to every email sent, as well as particular tags based on selected emails defined by your requirements.
You can also use your own templates that have been added to your MailChimp account and shared with your Mandrill account.
There are a few levels of integrations between your WordPress installation and this plugin:
Enable the connection by entering a valid API key in the settings page or adding the line define('SEWM_API_KEY', '{YOUR_API_KEY}')
your site’s wp-config.php file.
Spanish translation available.
If you find that a part of this plugin isn’t working, please don’t simply click the WordPress “It’s broken” button. Let us know what’s broken in its support forum so we can make it better. Our mind-reading device still needs some tweaking.
Send Emails with Mandrill is currently localized in the following languages:
If your account has more than 20 senders registered or more than 40 tags used, the detailed daily statisticas might show incompleted data.
Send Emails with Mandrill
to the /wp-content/plugins/
directoryIn order to use this plugin, you have to provide one of your Mandrill API keys. That’s currently the only way we can get access to your Mandrill account.
Yes. If you aren’t currently on a MailChimp Monthly Plan, you’ll first need to upgrade or switch to a Monthly Plan. Once you have upgraded you can follow the steps here to add Mandrill to your account.
Yes. We try to send every single email sent through your WordPress installation. We also try to process your headers and attachments.
If the sending fails for any reason, the plugin will try to send it again using the WordPress wp_mail function.
Use the mandrill_payload filter and add a new parameter called ‘force_native’ to the $message variable, and set it to true:
$message[‘force_native’] = true;
In version 1.09, we added a setting that allows you to tell the plugin if you want to replace your line feeds by
. Try playing with that switch.
If it works for certain emails but doesn’t work for others, you might want to modify this setting using the mandrill_nl2br filter. For example, if you don’t want to use this filter for the “forgot password” emails, add something like this to your theme’s functions.php file:
function my_function($nl2br, $message) {
if ( in_array(‘wp_retrieve_password’, $message[‘tags’][‘automatic’]) ) {
$nl2br = false;
}
return $nl2br;
}
add_filter(‘mandrill_nl2br’, ‘my_function’);
If we couldn’t send your email through Mandrill, we’ll try to leave the Mandrill response in your server’s log so that’s your first stop.
Additionally, if you set the WP_DEBUG constant (defined in your wp-config.php file) to true, you’ll see some messages added by the plugin in key parts of the process.
Please verify the following: