Skip to content

Izikd/fuel-mandrill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Mandrill for FuelPHP

Mandrill is a new way for apps to send transactional email. It runs on the delivery infrastructure that powers MailChimp.

Allows to send up to 12k free emails per month.

##Install

  1. Download and put mandrill directory into packages.
  2. Load email & mandrill packages in config/config.php:
      'always_load'  => array(
          'packages'  => array(
              'email',
              'mandrill'
          )
      )
  1. Edit your config/email.php file to use mandrill driver.
      'driver' => 'mandrill'
  1. Copy mandrill/config/mandrill.php file to config/ and enter your Mandrill API key.
      'api_key' => 'your_api_key'

##Usage As you would send any email through FuelPHP.

  $email = Email::forge();
  
  $email->from('my@email.me', 'My Name');
  $email->to('receiver@elsewhere.co.uk', 'Johny Squid');
  $email->subject('This is the subject');
  $email->html_body(\View::forge('email/template', $email_data));
  
  $email->send();

##Limitations

  • Doesn't support attachments
  • TO, CC & BCC are all merged (By default not exposed to "TO" field; Sends individually)

##Credits

About

Mandrill package for FuelPHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages