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.
- Download and put
'always_load' => array( 'packages' => array( 'email', 'mandrill' ) )
- Edit your
config/email.phpfile to use
'driver' => 'mandrill'
config/and enter your Mandrill API key.
'api_key' => 'your_api_key'
As you would send any email through FuelPHP.
$email = Email::forge(); $email->from('firstname.lastname@example.org', 'My Name'); $email->to('email@example.com', 'Johny Squid'); $email->subject('This is the subject'); $email->html_body(\View::forge('email/template', $email_data)); $email->send();
- Doesn't support attachments
- TO, CC & BCC are all merged (By default not exposed to "TO" field; Sends individually)