$header = "From: {$email}\n" . "Reply-To: {$email}\n";
        $subject = "Event Management Direct Website Contact Message from {$name}";
        $email_to = EMAIL;
        $emailMessage = "From: " . $name . "\n";
        $emailMessage .= "Email Address: " . $email . "\n\n";
        $emailMessage .= $message;
        //use php's mail function to send the email
        @mail($email_to, $subject, $emailMessage, $header);
        //grab the current url, append ?sent=yes to it and then redirect to that url
        $url = "http" . (!empty($_SERVER['HTTPS']) ? "s" : "") . "://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
        header('Location: ' . $url . "?sent=yes");
    } else {
        //set the number of errors message
        $message_text = $v->errorNumMessage();
        //store the errors list in a variable
        $errors = $v->displayErrors();
        //get the individual error messages
        $nameErr = $v->getError("your name");
        $emailErr = $v->getError("email");
        $messageErr = $v->getError("your message");
    }
    //end error check
}
// end isset
?>
-->

<!DOCTYPE html>
<html>
  <head>
    <title>TWC Recruitment - Recruiting the markets best talent</title>