jcanepa's avatar

Laravel 9 Mandrill Driver Packages

I am looking for a viable alternative Mandrill (Mailchimp transactional) mail driver package compatible with Laravel 9. The one I used previously, therobfonz/laravel-mandrill-driver has become incompatible with the new major version of Laravel framework. From what I understand, the package relies on swiftmailer/swiftmailer rather than symfony/mailer which is the package currently used by the framework. This may change in the future, but for now I'm looking for help choosing a replacement.

Here are some other options on Packagist, specifically:

From what I can tell, salamwaddah/laravel-mandrill-driver looks the most promising. To be compatible with laravel/framework v9, I believe they also need to require illuminate/support v9 and php ^8.0. If none of these work, I'll probably work with with the mailchimp/transactional package directly.

0 likes
5 replies
theProfit's avatar

Hi @jcanepa i use mandrillapp in most of my platform and i just use it in my env file i putt in the mandrill credentials.

jcanepa's avatar

@theProfit How are you pulling it in? Are you using mailchimp/transactional, making API requests directly with Guzzle or using some kind of wrapper?

theProfit's avatar
Level 7

@jcanepa No i am just using it as a SMTP server in you're .env file you can set a SMTP server, i just set mandrill as a smtp server and then for example make a notificiation or mail, this works realy great.

1 like
jcanepa's avatar

@theProfit this is a good alternative. Instead of using an API driver, I switched to sending mail with SFTP (at least for now). In .env file:

MAIL_MAILER=smtp
MAIL_HOST=smtp.mandrillapp.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=

Adding in connection details from your Mandrill account under settings.

theProfit's avatar

This also is nice for local dev on my laptop i use HELO so i have the local .env with HELO smtp server. on my PRD server i have mandrill works sweet.

Please or to participate in this conversation.