$basepath = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR; require_once($basepath.'includes/recaptchalib.php'); // turnerphotographics.com keys $publickey = "6LcXiLwSAAAAABtZ-1voDwO0ppeCsyYLEJ07NgQh"; // you got this from the signup page $privatekey = "6LcXiLwSAAAAADzHLoGqaDYeLpKwEXRZ-ClXnxiE"; // kandarz.com test keys //$publickey = "6Lfd_QAAAAAAAApNowSDH52HRTAb8ry6QALaiLkG"; //$privatekey = "6Lfd_QAAAAAAAHX_kKIeJocoW_DtAIFv1jPJcO5H"; require($basepath.'includes/recaptcha/autoload.php'); $recaptcha = new \ReCaptcha\ReCaptcha($privatekey); # the response from reCAPTCHA $resp = null; # the error code from reCAPTCHA, if any $error = null; # are we submitting the page? if ($_POST["submit"]) { $gRecaptchaResponse = $_POST["g-recaptcha-response"]; $remoteIp = $_SERVER["REMOTE_ADDR"]; $resp = $recaptcha->verify($gRecaptchaResponse, $remoteIp); // $resp = recaptcha_check_answer ($privatekey, // $_SERVER["REMOTE_ADDR"], // $_POST["recaptcha_challenge_field"], // $_POST["recaptcha_response_field"]); if ($resp->isSuccess()) { $from = "TurnerPets "; $to = "Mark Turner "; //$to = "ian.turner@gmail.com"; // add their email if they want a copy if (isset($_POST['sendself'])) { $to .= ", ".preg_replace('/[<>"?;:\|{}[]<._+-=!@#$%^&*()]+/', "", $_POST['name']). " <".$_POST['email'] . ">"; } $subject = "[Website Pets] Information Request"; $body = "Your website here, we just got this information request from " . preg_replace('/[<>"?;:\|{}[]<._+-=!@#$%^&*()]+/', "", $_POST['name']) . "\n\n" . "Name: ".preg_replace('/[<>"?;:\|{}[]<._+-=!@#$%^&*()]+/', "", $_POST['name'])."\n" . "Email: ".$_POST['email']."\n" . "Phone: ".$_POST['phone']."\n" . "Besttime: ".$_POST['besttime']."\n" . "Comments: \n". stripslashes($_POST['comments'])."\n"; $headers = "From: TurnerPets \r\nReply-To: " . $_POST['email'] . "\r\n" . "X-Mailer: php"; //echo "To:".$to . "
\nSubject: " . $subject . "
\nBody: " . $body . "
\nHeaders: " . $headers; //print_r($_POST); if (mail($to, $subject, $body, $headers)) { $hasError = false; $message = "Thank you for your question or comment. We'll be in touch soon."; } else { $hasError = true; $message = "Message delivery failed..."; } /*$host = ""; $username = ""; $password = ""; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'port' => 465, 'timeout' => 20, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("

" . $mail->getMessage() . "

"); } else { echo("

Message successfully sent!

"); }*/ # in a real application, you should send an email, create an account, etc } else { # set the error code so that we can display it. You could also use # die ("reCAPTCHA failed"), but using the error message is # more user friendly $hasError = true; $message = "Invalid Captcha"; $error = $resp->getErrorCodes(); // $error = $resp->error; } } $header = << EOD; $title = "Contact Bellingham Photographer Mark Turner"; $section = "home"; ?> | Purebred Pet Portraits

Contact Us

Fergus : Cat Portrait

Mark Turner
Turner Photographics
2414 C Street
Bellingham, Washington  98225
360-671-6851

Information Request


Please include your phone number and best time to call so we can discuss your questions by phone.  Thanks.

 
 
The time now is: December 9, 2018, 10:29 pm PST

Question or Comments: