PHP script send email with Mandrill

// Send Email

require_once 'Mandrill.php';
$mandrill = new Mandrill($apikey);

$message = new stdClass();
$message->html = "html message";
$message->text = "text body";
$message->subject = "email subject";
$message->from_email = "[email protected]";
$message->from_name  = "From Name";
$message->to = array(array("email" => "[email protected]"));
$message->track_opens = true;

$response = $mandrill->messages->send($message);

Big thanks to this blog author

Latest blog

Web Analytics