Jump to content

forget password not send to mail ?


kram54

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.