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 '; # # ?> 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? 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
Archived
This topic is now archived and is closed to further replies.