Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

thpoul/mandrill-fuel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandrill transactional email service - A FuelPHP wrapper.

Usage example

	Package::load('mandrill');

	$mandrill = new Mandrill();

	$params = array(
		'html' => '<p>Html goes here</p>',
		'text' => 'Text goes here',
		'subject' => 'My awesome subject',
		'from_email' => '[email protected]',
		'from_name' => 'John Doe',
		'preserve_recipients' => false,
		'url_strip_qs' => true,
		'track_opens' => true,
		'track_clicks' => true,
		'to' => array(
			array(
				'email' => '[email protected]',
				'name' => 'Tom Recipient'
			)
		)
	);

	$output = $mandrill->messages->send($params);
	## The $output will return an array
	Array
	(
		[0] => Array
			(
				[email] => [email protected]
				[status] => sent # Status can be 'sent','rejected','invalid','queued'
			)

	)

About

Mandrill FuelPHP Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages