Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Mandrill package for FuelPHP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
mandrill
.gitignore
README.md

README.md

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

Something went wrong with that request. Please try again.