accord/mandrill-swiftmailer-bundle

Symfony bundle to provide a Mandrill SwiftMailer service


Keywords
symfony, bundle, swiftmailer, mandrill
License
GPL-2.0+

Documentation

MandrillSwiftMailerBundle

Build Status SensioLabsInsight

A Symfony bundle that provides a Mandrill Transport implementation based on Mandrill's API

Requirments

Mandrill API Key - https://mandrillapp.com/

Installation

Require the package with composer

composer require accord/mandrill-swiftmailer-bundle

Add AccordMandrillSwiftMailerBundle to application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Accord\MandrillSwiftMailerBundle\AccordMandrillSwiftMailerBundle(),
        // ...
    );
}

Add your API key to the config.yml

// app/config/config.yml
accord_mandrill_swift_mailer:
    api_key: MANDRILL_API_KEY
    async: false # optional
    subaccount: ~ # default null

Configure Swiftmailer to use this new transport

// app/config/config.yml
swiftmailer:
    transport: accord_mandrill