Skip to content

A Symfony bundle that provides a Swiftmailer transport service for Mandrill

License

Notifications You must be signed in to change notification settings

jrattue/MandrillSwiftMailerBundle

 
 

Repository files navigation

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

About

A Symfony bundle that provides a Swiftmailer transport service for Mandrill

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%