I am trying to send mail through a simple PHP script mail. I checked the code many times, the page goes to the "Thankyou_page" page, as if the mail was sent, but I have not yet received the letter. Any ideas why this is not working?
<?php $webmaster_email = " email@mail.com "; $subject = "Contact Us"; $feedback_page = "feedback_form.html"; $error_page = "error_message.html"; $thankyou_page = "thank_you.html"; $email_address = $_REQUEST['email_address'] ; $comments = $_REQUEST['comments'] ; function isInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } }
source share