So the issue that was bringing this message was my regular expression variable was missing a character so the function of match was not working.
$reg_exp = "/^([a-z0-9._-]+@[a-z0-9._-]+\.[a-z]{2,4}$/ ";
if(!preg_match($reg_exp, $email)){
$errorMsg .= "<p>A valid email is required</p>";
}
so that fixed this issue.
What you bring up is a whole other issue within itself, that i realized once solving the problem above. The data for $message is not being sent to with the submission and client side php is not seeing that data.
Not sure why that would be happening.
EDIT:
I changed the if(empty($message)) -> if(!isset($message)) and that seemed to have fixed it.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.