, (*1)
MfccMandrill
This Modules provides an API wrapper for Mandrill API (https://mandrillapp.com/api/docs/), (*2)
It is based and depends on original Mandrill library (https://bitbucket.org/mailchimp/mandrill-api-php), (*3)
Install:
The suggested installation method is via composer:, (*4)
php composer.phar require mfcc/zendesk-mandrill:dev-master
Usage:
- Enable MfccMandrill module in your application.config.php file.
- Configure module. Copy
./vendor/mfcc/mandrill/config/module.mfcc-mandrill.local.php.dist
to
./config/autoload/module.mfcc-mandrill.local.php
and change the values as desired.
- Get Mandrill Service and call method (e.g. send mail):
$mandrill = $this->getServiceLocator()->get('mfccMandrillService');
$mandrill->call('messages/send', array(
'message' => array(
'text' => 'test',
'subject' => 'example subject',
'from_email' => 'sender@mail.com',
'from_name' => 'From Name',
'to' => array(
array('email' => 'recepient@email.com')
)
)
));
You can find documentation to methods exposed by this module either here: https://mandrillapp.com/api/docs/, (*5)
Or in YOUR_APP/vendor/mandrill/mandrill/docs/index.html
once you have installed MfccMandrill module., (*6)