Download the PHP package hipaway-travel/mandrill-bundle without Composer
On this page you can find all versions of the php package hipaway-travel/mandrill-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hipaway-travel/mandrill-bundle
More information about hipaway-travel/mandrill-bundle
Files in hipaway-travel/mandrill-bundle
Package mandrill-bundle
Short Description Symfony Mandrill Bundle
License MIT
Homepage https://github.com/slot/SlotMandrillBundle
Informations about the package mandrill-bundle
SlotMandrillBundle
Send transactional mail through mandrill.com. This bundle provides an easy api for Symfony2 Projects.
All settings inside message class represent attributes of Mandrill's API. Please refer to their API documentation for Details:
https://mandrillapp.com/api/docs/messages.html
Prerequisites
Before you're able to use this bundle you must sign up with Mandrill.
Mandrill is a great way to send your transactional emails and provides detailed advances reports.
Mandrill is free for limited number of email per day, please read through pricing section on the website for more information:
Installation
via composer:
Enable the bundle in the kernel
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Slot\MandrillBundle\SlotMandrillBundle(),
);
}
Configuration
Add configuration to config.yml.
Log in to Mandrill and go to "Settings" -> "SMTP and API Credentials". Create an API Key and use it in your Symfony2 Configuration.
Now you're all set, send your first transactional mails:
Use
Simple controller Example:
Using Handlebars
By default the bundle will assume the merge language is 'mailchimp'. You can
change this with $message->setMergeLanguage('handlebars')
All versions of mandrill-bundle with dependencies
symfony/config Version >=2.8
mandrill/mandrill Version 1.*