kram54 Posted May 16, 2010 Share Posted May 16, 2010 hi everybody i dont know how to using mail fuctions .. i use to localhost (xampp) please help this is my code: # <?php # # include("config.php"); # # include("fk.php"); # # $email = $_POST['email']; # if(!$email) # { # echo "enter your mail "; # include ("mr.php"); # exit(); # } # $email_kntrl = mysql_query("SELECT * FROM users where email in('".$email."')"); # $email_kntrl2 = mysql_num_rows($email_kntrl); # if($email_kntrl2 == 0) # { # echo '<font color="red">havent this mail </font>'; # unset($email); # include ("mm.php"); # exit(); # } # # # # $new_password = sha1($random_pass); # # $sql = mysql_query("update users set sifre='$new_password' where mail='$email'"); # $konu = "Yeni Şifreniz:"; # $mesaj = "your new password $random_pass; # # # mail();// # echo 'we sending '; # # ?> Quote Link to comment https://forums.phpfreaks.com/topic/201963-forget-password-not-send-to-mail/ Share on other sites More sharing options...
Adam Posted May 16, 2010 Share Posted May 16, 2010 You're missing a quote at the end of the string: $mesaj = "your new password $random_pass; I'm assuming the hashes were added when you copied the code? Quote Link to comment https://forums.phpfreaks.com/topic/201963-forget-password-not-send-to-mail/#findComment-1059213 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.