/***************** CONFIG *******************/ // Your Email Address $to = 'enquiries@fabtech-bodykits.com'; // Enter a url to redirect to after sending the email if needed $redirect = ''; /*************** END CONFIG *****************/ // Check to see if form has been submitted if($_POST['submit']) { $from = $_POST['from']; $subject = stripslashes($_POST['subject']); $body = stripslashes($_POST['body']); if($from != '' && $subject != 'Web Site Enquiry' && $body != ''){ mail($to, $subject, $body, "From: $from"); if($redirect) header("Location: $redirect"); else $message = '
Your Enquiry has been submitted. We will get back to you within 1 business day. Thank you.
'; } else { $message = 'Please complete ALL fields
'; } } ?>
|
|
|
||||||