score >= 0.5) { // Verified if (empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message'])) { $errors[] = "Error: all fields are required"; } $name = $_POST['name']; $email_address = $_POST['email']; $message = $_POST['message']; if (!preg_match( "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $email_address)) { $errors[] = "Error: Invalid email address"; } if (empty($errors)) { $SENDGRID_API_KEY = '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'; $message_sent = false; $message_error = ''; require('lib/sendgrid-php.php'); $email_body = "You have received a new message. ". " Here are the details:\n Name: $name \n Email: $email_address \n Message: \n $message"; $email = new \SendGrid\Mail\Mail(); $email->setFrom($email_address, $name); $email->setSubject("Contact form submission: $name"); $email->addTo($myemail); $email->addContent("text/plain", $email_body); $sendgrid = new \SendGrid($SENDGRID_API_KEY); try { $response = $sendgrid->send($email); header('Location: contact-form-thank-you.html'); } catch (Exception $e) { $errors[] = $e->getMessage(); } } } else { // Not verified - show form error $errors[] = 'Sorry, you did not pass reCAPTCHA verification. Please try again.'; } } ?> Mind Body Healing NYC - Hypnotherapy sessions and Tension and Trauma Release Exercises- Hypnosis Sessions in French and in English

Hypnotherapy NYC

Ready to start?

• '.$err.'

'; }, $errors)); ?>

Office Address