'".$_POST['email']."' does not seem to be valid.
Your message could not be sent. Please go back and try again."; } else { // BOF sanitize input $_POST['email'] = preg_replace( "/\n/", " ", $_POST['email'] ); $_POST['name'] = preg_replace( "/\n/", " ", $_POST['name'] ); $_POST['email'] = preg_replace( "/\r/", " ", $_POST['email'] ); $_POST['name'] = preg_replace( "/\r/", " ", $_POST['name'] ); $_POST['email'] = str_replace("Content-Type:","",$_POST['email']); $_POST['name'] = str_replace("Content-Type:","",$_POST['name']); // EOF sanitize input $email = $_POST['email']; $name = $_POST['name']; $phone = $_POST['phone']; $message = $_POST['message']; $today = date("M d, Y"); ////////////////////////////////////////////// // $recipient = "gandhi@bevplastics.com.au"; ///////////////////////////////////////////// // Insert message you wish to show in subject of the email $subject = "Quote request"; $forminfo = "Name: $name\n Email: $email\n Phone: $phone\n Message:\n $message\n\n Form Submitted: $today\n\n"; $formsend = mail("$recipient", "$subject", "$forminfo", "From: $email\r\nReply-to:$email"); } } if(isset($_POST['Submit'])) { if(!empty($error_message)) { ?>
Quote request Form
Thanks. You sent the following information.