Mautic custom email settings plugin
This plugin allows Mautic to switch between different email services - Sparkpost and Sendgrid. You can also add different API keys for the different email providers.
Installation via .zip
- Download the master.zip, extract it into the
plugins/
directory and rename the new directory toCustomEmailSettingsBundle
. - Clear the cache via console command
php bin/console cache:clear --env=prod
(might take a while) OR manually delete theapp/cache/prod
directory.
Update
- Remove
plugins/CustomEmailSettingsBundle
directory. - Download the master.zip, extract it into the
plugins/
directory and rename the new directory toCustomEmailSettingsBundle
. - Clear the cache via console command
php bin/console cache:clear --env=prod
(might take a while) OR manually delete theapp/cache/prod
directory. - Run
php bin/console mautic:plugins:install
in root Mautic directory.
Configuration
Choose "Multiple Transport" in Configuration / Email Settings
Specify correct E-mail address to send mail from
and add API key
which will be used as default (required).
Navigate to Settings Panel. You should see the "Email Api Keys" menu in your settings:
In the plugin configuration you can add a different API key for the given mail template or you can leave it blank so that the default API key will be used:
Please note:
- It is important to specify correct
From address
for emails, where custom API key will be using (Channels > Emails > Edit Email > Advanced tab). - To delete already configured API key just clear the "key" field and save it;
- If no service is chosen, the default email settings will be used;