Effortlessly Send Email with Mandrill (Sponsor)
Published on by Eric L. Barnes
Mandrill is a scalable, reliable, and secure email infrastructure service trusted by more than 300,000 customers. It’s easy to set up and integrate with existing Laravel apps. And it’s really fast, too. With servers all over the world, Mandrill can deliver your email in milliseconds.
Use Mandrill to send automated one-to-one email like password resets and welcome messages, as well as marketing emails and customized newsletters. Mandrill is quick to set up, easy to use, and ridiculously stable. We made it for developers, who love documentation, integrations, high delivery rates, webhooks, and analytics.
Getting started with Mandrill in your Laravel app couldn’t be simpler. In fact it only takes four steps:
- Signup and generate an API key
- Require Guzzle
- Set your API key
- Set your mail config
Here are the steps in detail if you’d like to get started today.
Require Guzzle in your composer.json:
"guzzlehttp/guzzle": "~4.0"
Set your API key in app/config/services.php:
'mandrill' => array( 'secret' => 'your-mandrill-key',),
Finally edit your app/config/mail.php to initialize the Mandrill driver and set your from address:
'driver' => 'mandrill','from' => array('address' => 'you@you.com', 'name' => 'Acme Company'),
In those simple steps you can be up and running.
***
Many thanks to Mandrill via Syndicate Ads for sponsoring the site this week.
Eric is the creator of Laravel News and has been covering Laravel since 2012.