ocean / laravel-mandrill

A LaravelPHP package for working w/ Mandrill.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 Bunle.

Install

In application/bundles.php add:

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

Copy the sample config file to application/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')),
	),
));

About

A LaravelPHP package for working w/ Mandrill.


Languages

Language:PHP 100.0%