accord/mandrill-swiftmailer-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony bundle to provide a Mandrill SwiftMailer service

1.3.1 2018-12-28 09:12 UTC

This package is auto-updated.

Last update: 2023-01-15 19:28:45 UTC


README

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