'6Lf0bgMTAAAAAB94ijTTTKrIdZKP1-CRYOtpOvV1',
'response' => $_POST['g-recaptcha-response'],
'remoteip' => $_SERVER['REMOTE_ADDR']
);
//url-ify the data for the POST
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
$fields_string = substr($fields_string,0,-1);
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER ,1);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
//execute post
$result = curl_exec($ch);
$result =json_decode($result);
$verifiedcaptcha =$result->success;
//close connection
curl_close($ch);
}
if($_POST['email'] != '' && $_POST['name'] != '' && $verifiedcaptcha == true) {
$mail = new PHPMailer();
$body = file_get_contents('phpmailer/template.html');
$body = str_replace('{name}',$_POST['name'],$body);
$body = str_replace('{email}',$_POST['email'],$body);
$body = str_replace('{comments}',$_POST['comments'],$body);
$body = eregi_replace("[\]",'',$body);
$mail->AddReplyTo($_POST['email'],$_POST['name']);
$mail->SetFrom($_POST['email'], $_POST['name']);
$mail->AddReplyTo($_POST['email'],$_POST['name']);
$mail->AddAddress("info@peaceofmindpc.com", "Tomer");
$mail->Subject = "Contact Request From Website";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->MsgHTML($body);
if(!$mail->Send()) {
$msg = '';
//echo "Mailer Error: " . $mail->ErrorInfo;
} else {
$msg = '
Thank you for your inquiry. Your email will be reviewed as soon as possible.
';
}
}
?>
Peace of Mind PC - Contact Us
Use the form below for any non emergency type requests,
one of our ReliableTechs will contact you within 2 hours.
For emergency assistent please call (786-355-6444)
Mailing Address
4921 SW 38th Way
Fort Lauderdale, FL 33312