mfcc / mandrill
Contact-Form using a honeypot for spam-protection and zendesk API for creating ticket
dev-master
2013-07-26 10:07 UTC
Requires
- php: >=5.3.0
- mandrill/mandrill: 1.*
- zendframework/zendframework: >=2.1,<=2.3.x-dev
- zf-commons/zfc-base: >=0.0.1
This package is auto-updated.
Last update: 2024-11-29 03:53:01 UTC
README
MfccMandrill
This Modules provides an API wrapper for Mandrill API (https://mandrillapp.com/api/docs/)
It is based and depends on original Mandrill library (https://bitbucket.org/mailchimp/mandrill-api-php)
Install:
The suggested installation method is via composer:
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/
Or in YOUR_APP/vendor/mandrill/mandrill/docs/index.html
once you have installed MfccMandrill module.