Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$apikey = 'API_KEY_HERE';
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 = "";
$message->from_name = "My App Name";
$message->to = array(array("email" => ""));
$message->track_opens = true;
$response = $mandrill->messages->send($message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.