{$message}"; else $response .= "
{$message}
"; } function get_if_post($name,$mess=""){ global $response; $val = $_POST[$name]; if($val) return $_POST[$name]; else if($mess)$response .= "
Missing $mess
"; return ""; } //response messages $missing_content = "Please supply all information."; $email_invalid = "Email Address Invalid."; $message_unsent = "Message was not sent. Try Again."; $message_sent = "Thanks! Your message has been sent."; //user posted variables $name = get_if_post('c_name', "Name"); $email = get_if_post('c_email',"Email Address"); $company = get_if_post('url'); $subject = get_if_post('c_subject',"Subject"); $message = get_if_post('c_comment',"Message"); //php mailer variables $to = get_option('admin_email'); $subject = $name . " sent a message from ".get_bloginfo('name'); $headers = "From: Vacsolution \r\n" . "Reply-To: $email\r\n"; if($name!="" and $email!="" and $subject!="" and $message!=""){ //validate email if(!filter_var($email, FILTER_VALIDATE_EMAIL)) my_contact_form_generate_response("error", $email_invalid); else{ $sent = wp_mail($to, $subject, strip_tags($message),$headers ); if($sent) my_contact_form_generate_response("success", $message_sent); //message sent! else my_contact_form_generate_response("error", $to. $subject. strip_tags($message). $headers); //message wasn't sent } } else my_contact_form_generate_response("error", $missing_content); } global $options; get_header(); ?>
Contact us
Tel: +44-870-2953118
Email: info@vacsolution.com
Out of hours contact
For any new enquiries we are able to offer an out of hours service by email during the evening and weekends where for possible. Please send your email to support@vacsolution.com and a member of staff will get back to you as soon as possible.

Online Inquiry

Your email address will not be published. Required fields are marked *

*
*
*
*
" name="_wpnonce" />