accord / mandrill-swiftmailer-bundle
Symfony bundle to provide a Mandrill SwiftMailer service
Installs: 547 065
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 5
Forks: 15
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4
- accord/mandrill-swiftmailer: >=1.2
- symfony/framework-bundle: >=2.3
- symfony/swiftmailer-bundle: >=2.3
Requires (Dev)
- phpunit/phpunit: ~5.7
- symfony/config: >=2.3
- symfony/finder: >=2.3
README
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