Gruzin Posted August 25, 2006 Share Posted August 25, 2006 hi guys I'am trying to write a simple php mail script, but it doesn't actually send the mail... I don't know, maybe someone will explain it to me. Thanks for your time. Here is the code:[code]<?php$to = $_POST['mail'];$subject = $_POST['sub'];$message = $_POST['mes'];$to = stripslashes($to);$subject = stripslashes($subject);$message = stripslashes($message);mail($to, $subject, $message, "From: You<email@example.com>\nX-Mailer: PHP/" . phpversion()) or die("Unable to send mail"); echo "Your email was sent successfuly";?>[/code] Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.