I am a noob when it comes to PHP and I am trying to build an email form. I ripped some code off and built it out and now I am trying to debug why it won't actually send to my email. Once I fill in the required fields it says "your message has been sent" but I don't receive the email. Any help would be wonderful! Much thanks in advance!

$error_message = ""; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; if(!preg_match($email_exp,$email_from)) { $error_message .= 'The Email Address you entered does not appear to be valid.<br />'; } $string_exp = "/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$first_name)) { $error_message .= 'The First Name you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$last_name)) { $error_message .= 'The Last Name you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$telephone)) { $error_message .= 'The Telephone Number you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$age)) { $error_message .= 'The Age you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$occupation)) { $error_message .= 'The Occupation you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$location)) { $error_message .= 'The Requested Location you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$city)) { $error_message .= 'The City you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$state)) { $error_message .= 'The State you entered does not appear to be valid.<br />'; } if(strlen($preferred_date) < 2) { $error_message .= 'The Preferred Date you entered does not appear to be valid.<br />'; } if(strlen($preferred_time) < 2) { $error_message .= 'The Preferred Time you entered do not appear to be valid.<br />'; } if(strlen($meeting_type) < 2) { $error_message .= 'The Meeting type you entered do not appear to be valid.<br />'; } if(!preg_match($string_exp,$reference_1)) { $error_message .= 'The First Reference you entered do not appear to be valid.<br />'; } if(!preg_match($string_exp,$reference_1number)) { $error_message .= 'The First Reference number you entered do not appear to be valid.<br />'; } if(!preg_match($string_exp,$reference_2)) { $error_message .= 'The Second Reference you entered do not appear to be valid.<br />'; } if(!preg_match($string_exp,$reference_2number)) { $error_message .= 'The Second Reference number you entered do not appear to be valid.<br />'; }