Send email using Mandrill API from Silverstripe CMS
Set globally in _config.php
Email::set_mailer(
new MandrillMailer( [apikey] );
);
Extend the Silverstripe Email class and specify this Mailer for use with it.
class MyEmail extends Email {
__construct(){
$mandrillMailer = new MandrillMailer( [apikey] );
$this->set_mailer( $mandrillMailler );
}
}