2017 © Pedro PelĂĄez
 

library mandrill

Contact-Form using a honeypot for spam-protection and zendesk API for creating ticket

image

mfcc/mandrill

Contact-Form using a honeypot for spam-protection and zendesk API for creating ticket

  • Friday, July 26, 2013
  • by Tlapi
  • Repository
  • 4 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Total Downloads, (*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:

  1. Enable MfccMandrill module in your application.config.php file.
  2. 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.
  3. 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)

The Versions

26/07 2013

dev-master

9999999-dev https://github.com/Tlapi/mfcc-mandrill

Contact-Form using a honeypot for spam-protection and zendesk API for creating ticket

  Sources   Download

MIT

The Requires

 

service email zf2 zend mailing