0 Members and 1 Guest are viewing this topic.
<?PHP//security functionfunction 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; }}//Get form entries$name = $_POST['name'];$email = $_POST['email'];$phone = $_POST['phone'];$description = $_POST['job-description'];$contact_method = $_POST['contact-method'];//securityif(IsInjected($email)) {echo "Bad email value!";exit;}//Compose email$email_from = <valid address>;$email_subject = "TopPage Design form submission: quotes.html";$email_body = "*** FORM SUBMISSION *** \nname: " . $name . "\nemail: " . $email . "\nphone: " . $phone . "\ndescription: " . $description . "\ncontact method: " . $contact_method . "\n*** END OF EMAIL ***";//Send email$to = <valid address>;$headers = "From" . $email_from . "\r\n";$headers .= "Reply-To:" . $email . "\r\n";//sendmail($to, $email_subject, $email_body, $headers);//successecho("success.");?>
"welcome to the world of computers, where everything seems to be based on random number generators"
may your mail settings are incorrect in your php.ini, i can't help you much there, sorryEDIT: just noticed for the headders:"From: My Secret name <[email protected]>\r\n"
you probably need a 57o9.org email then, let juju do the work for you
Yeah, probably a misconfigured php.ini. Might look into this.
You could execute the 'mail' binary from php