A LaravelPHP package for working w/ Mandrill.
Switch branches/tags
Nothing to show
Clone or download
MichMich Merge pull request #5 from vFragosop/patch-1
Fixing CURLOPT_SSL_VERIFY_HOST
Latest commit e05b6a7 Apr 25, 2013
Permalink
Failed to load latest commit information.
config Initial commit. Aug 4, 2012
libraries changed CURLOPT_SSL_VERIFYHOST to 2 Apr 6, 2013
readme.md Fix typo in readme.md Dec 15, 2012
start.php Initial commit. Aug 4, 2012

readme.md

Mandrill for LaravelPHP

This package is a simple wrapper for working w/ the Mandrill API. The code of the application is based on Scott Travis' Mailchimp Bundle.

Install

In application/bundles.php add:

'mandrill' => array('auto' => true),

Edit the sample config file in bundels/mandrill/config/mandrill.php and input the proper information.

Usage

Call the desired method and pass the params as a single array. Don't worry about passing the API key.

$response = Mandrill::request('messages/send', array(
	'message' => array(
		'html' => 'Body of the message.',
		'subject' => 'Subject of the message.',
		'from_email' => 'monkey@somewhere.com',
		'to' => array(array('email'=>'foo@bar.com')),
	),
));