Thank you for your interest!
Your request has been sent, someone from our office will get back to you shortly.
} else { include("_content.html"); if ($errormsg) { echo "header('Content-Type: text/html; charset=utf-8'); if($_SERVER['REQUEST_METHOD'] == "POST") { include("/home/cbhearth/_inc/mail/Mail.php"); include("/home/cbhearth/_inc/securimage/securimage.php"); $fullname = $_POST['fullname']; $spousename = $_POST['spousename']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $homephone = $_POST['homephone']; $cellphone = $_POST['cellphone']; $email = $_POST['email']; $besttime = $_POST['besttime']; $agentname = $_POST['agentname']; $interest = $_POST['interest']; $code = $_POST['code']; if (isset($code) == false) { $errormsg = "Please validate the security code"; } else { $img = new Securimage(); $valid = $img->check($code); if($valid == false) { $errormsg = "Sorry, the code you entered was invalid, please try again."; } } if (isset($errormsg) == false) { if (strlen($fullname) > 0 && strlen($address) > 0 && strlen($city) > 0 && strlen($state) > 0 && strlen($zip) > 0 && strlen($homephone) > 0 && strlen($besttime) > 0) { $to = "connect@cbhearthside.com"; //$to = "jim@scarletfire.net"; $recipients = $to; $headers['From'] = 'info@cbhearthside.com'; $headers['To'] = $to; $headers['Subject'] = "DESTINATION REFERRAL"; $msg = "Form submission date - ".date("m-d-Y H:i:s")."\n" . "Full Name: $fullname\n" . "Spouse Name: $spousename\n" . "Address: $address\n" . "City: $city\n" . "State: $state\n" . "Zip: $zip\n" . "Home Phone: $homephone\n" . "Cell Phone: $cellphone\n" . "Email: $email\n" . "Best time/method: $besttime\n" . "Working with: $agentname\n" . "Interest: $interest\n"; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('smtp', $params); $send = $mail_object->send($recipients, $headers, $msg); if (PEAR::isError($send)) { $errormsg = "There was a problem"; } else { $emailsent = "Y"; } } else { $errormsg = "Please make sure all fields are filled in!"; } } } ?>
|
include("/home/cbhearth/_inc/navigation/public-nav.inc"); ?>
if ($emailsent == "Y")
{
?>
Thank you for your interest!Your request has been sent, someone from our office will get back to you shortly. } else { include("_content.html"); if ($errormsg) { echo "".$errormsg." ";
}
?>
}
?>
|