Effortlessly Send Email  with Mandrill (Sponsor)
Sponsor / updated: November 24, 2014

Effortlessly Send Email with Mandrill (Sponsor)

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:

  1. Signup and generate an API key
  2. Require Guzzle
  3. Set your API key
  4. 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.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.