linkenpark51471
New Member
- Messages
- 27
- Reaction score
- 0
- Points
- 0
its for the login page and everything is sent to the database fine but the mail dosnt go out to the email and i have tried 2 diffrent emails
PHP:
if(isset($_POST["username"]) && isset($_POST["password"]) && isset($_POST["email"]))
{
$username = mysql_real_escape_string(stripslashes($_POST["username"]));
$password = mysql_real_escape_string(stripslashes($_POST["password"]));
$email = mysql_real_escape_string(stripslashes($_POST["email"]));
$fname = mysql_real_escape_string(stripslashes($_POST["fname"]));
$lname = mysql_real_escape_string(stripslashes($_POST["lname"]));
$number = rand(5, 2000);
$message = "Welcome to SaintMonopoly ";
mail($email , 'SaintMonopoly' , $message . "Please Dont Reply to this number go to Saintmonopoly.com" );
$query = "INSERT INTO members (username, password, image, email, fname, lname, suspended)
VALUES('$username', '$password', 'images/nopic.jpg', '$email', '$fname', '$lname', 'yes')";
$sql=$query;
if (!mysql_query($sql))
{
die('Error: ' . mysql_error());
}
echo "Your account has been created please verify your email then you can log in.";
}
mysql_close($con)
?>
Last edited: