< ?php
extract($_POST);
$timeStamp = time();
require("mailer/Mandrill.php");
try {
$mandrill = new Mandrill('xXD5GKve1LnqxgVLdfQO0w');
$message = array(
'html' => "Name: ".$Full_Name."
Phone: ".$Phone."
Email: ".$E_Mail."
Method: ".$Method."
Time: ".$Time."
Comments: ".$Comments,
'subject' => $introLine,
'from_email' => 'scott@towerdb.net',
'from_name' => 'Scott Meadows',
'to' => array(
array(
'email' => 'towerdigital@gmail.com',
'name' => 'TD',
'type' => 'to'
),
array(
'email' => 'info@fasttranscripts.com',
'name' => 'FT',
'type' => 'to'
),
array(
'email' => 'scott@puritanpress.org',
'name' => 'Lee Ann Gustafson',
'type' => 'to'
),
),
'preserve_recipients' => false,
'headers' => array('Reply-To' => $E_Mail)
);
$async = false;
$result = $mandrill->messages->send($message, $async);
} catch(Mandrill_Error $e) {
// Mandrill errors are thrown as exceptions
echo 'A mandrill error occurred: ' . get_class($e) . ' - ' . $e->getMessage();
// A mandrill error occurred: Mandrill_Unknown_Subaccount - No subaccount exists with the id 'customer-123'
throw $e;
}
?>
Your form is being processed.
Thank you!
Your form is being processed.
Thank you!