accord/mandrill-swiftmailer-bundle
Symfony bundle that adds a SwiftMailer transport for sending email via Mandrill’s API. Configure your Mandrill API key (plus optional async mode and subaccount), register the bundle, then set SwiftMailer’s transport to accord_mandrill.
Pros:
Cons:
config.yml; modern Symfony prefers framework.yaml/services.yaml).swiftmailer.transport with minimal config changes.mailchimp/mailchimp-marketing-php).SwiftMailer or symfony/swiftmailer-bundle.async config flag suggests basic queueing, but lacks retries/exponential backoff—critical for production reliability.Why Mandrill?
Symfony Compatibility
config.yml be migrated to framework.yaml?symfony/mailer? The latter may complicate integration.Maintenance Strategy
spatie/mail-templates + Mailchimp SDK) be adopted?Performance/Scaling
Assessment Phase:
php-http wrapper).Integration Steps:
composer require accord/mandrill-swiftmailer-bundle.AppKernel.php.api_key and swiftmailer.transport in config.yml.config.yml with services.yaml).symfony/mailer if possible (simplifies future upgrades).Fallback Plan:
failover transport:
swiftmailer:
transport: "%env(MAIL_TRANSPORT)%"
With MAIL_TRANSPORT set to accord_mandrill or smtp via env vars.symfony/mailer for better long-term support.symfony/mailer).TransportException).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Mandrill API downtime | All emails fail to send. | Fallback SMTP transport. |
| API key revoked/expired | Immediate send failures. | Automated key rotation + monitoring. |
| Rate limit exceeded | Emails queue or drop. | Exponential backoff + queue depth alerts. |
| Symfony/SwiftMailer version conflict | Bundle breaks in production. | Containerized testing (Docker) for upgrades. |
| Mailchimp API migration delay | Technical debt accumulates. | Parallel development of a Mailchimp transport. |
How can I help you explore Laravel packages today?