|
$val)
{
if(!empty($reqbody)) $reqbody.="&";
$reqbody.=$key."=".urlencode($val);
}
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $reqbody);
$rr=curl_exec($ch);
echo $rr;
curl_close($ch);
*/
if (isset($_POST['RealName']) && strlen($_POST['RealName']) > 0 && ($_SESSION['tmptxt'] == $_POST['captcha']) ){
if (isset($_POST['recipient'])) {
$header = "From: ".$_POST['EmailAddress']."\r\n";
$header .= "Return-Path: ".$_POST['EmailAddress']."\r\n";
// $header = "From: info@randrremodeling.com \r\n";
// $header .= "Return-Path: info@randrremodeling.com \r\n";
$header .= "X-Priority: 1\r\n"; // Urgent message! uncomment if needed
$header .="Content-Type: text/html;charset=iso-8859-1\r\n ";
$header .= 'Cc: jspokes@truepresence.com' . "\r\n";
$header .= 'Bcc: landingpages@truepresence.com' . "\r\n";
$header .= 'Bcc: gmiernicki@truepresence.com' . "\r\n";
ob_start();
include ("tplrandr.php");
$message = ob_get_contents();
ob_end_clean();
mail('Ray8478@aol.com', "Contact form - www.randrremodeling.com ", $message, $header); // Ray8478@aol.com
echo $menssage = " Thank You, Your information was sent successfully. ";
}
} else {
?>
| Coupon |  | |
|
|
|