What I’m Trying to Do
I would like to configure two different ESPs (Email Service Providers) in Mautic (e.g., Amazon SES and SendGrid), and when sending an email (manually or via campaign), I want Mautic to prompt me to select from which ESP the email should be sent.
Example Workflow
- I configure two ESPs in Mautic:
- ESP A: Amazon SES (SMTP/API)
- ESP B: SendGrid (SMTP/API)
- While creating or sending an email (either through campaigns or broadcast), Mautic should allow me to choose ESP A or ESP B.
- Based on the selected ESP, the correct mail transport is used during the sending process.
What I’ve Found So Far
- Mautic only supports one global ESP configuration at a time under Settings > Configuration > Email Settings.
- There is no native support to choose between multiple ESPs per email or campaign.
- Some suggest using custom plugins or transport override logic with Symfony events (e.g.,
EmailSendEvent
), but this requires custom development. - I’m aware it’s technically possible to switch ESPs dynamically by intercepting the email sending process via custom code.
What I’m Looking For
- Is there any existing plugin or community solution that:
- Allows selecting between multiple ESPs per email or campaign?
- Provides a UI option in the email creation or campaign step to choose the ESP?
- If no plugin exists, has anyone attempted this before? Any code snippets or guidance would be helpful.
- If not available, I am considering building a plugin to:
- Add a custom field (
esp_choice
) to the email or campaign. - Dynamically switch the mail transport at send time based on this field.