$email = $_POST["email"];
include("config.dat");
$sql = "select * from tb_user where email ='$email'";
$dbquery = mysql_db_query($dbname, $sql);
$num_rows = mysql_num_rows($dbquery);
if($num_rows == 1) {
$rs=mysql_fetch_array($dbquery);
$resul = "OK";
$pass = $rs[password];
}
else
{
$resul = "";
$email = "";
}
$message = "
Thank you for your signing up.
You are authorized to login our website by
Username : $email
Password : $pass
Please visit us to login
|
";
?>
Find Your Account
if ($email == "" or $resul == "" ) { ?>
Find Your Account
if ($resul == "") { ?>
No Search Results
} ?>
|
}
else
{
?>
$today = getdate();
$date_s = $today[year]."-".$today[mon]."-".$today[mday]." ".$today[hours].":".$today[minutes].":".$today[seconds];
$subject = "Your account";
require_once('class.phpmailer.php');
$mail = new PHPMailer();
$mail->CharSet = "windows-874";
$mail->IsHTML(true);
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "regalbabycare@gmail.com"; // GMAIL username
$mail->Password = "RGLBB@PP"; // GMAIL password
//$mail->From = "name@yourdomain.com"; // "name@yourdomain.com";
$mail->AddReplyTo = "name@yourdomain.com"; // Reply
$mail->FromName = "www.regalbabycare.com"; // set from Name
$mail->Subject = $subject;
$mail->Body =$message;
$mail->AddAddress($email); // to Address
//$mail->AddAttachment("thaicreate/myfile.zip");
//$mail->AddAttachment("thaicreate/myfile2.zip");
//$mail->AddCC("member@thaicreate.com", "Mr.Member ShotDev"); //CC
//$mail->AddBCC("member@thaicreate.com", "Mr.Member ShotDev"); //CC
$mail->set('X-Priority', '1'); //Priority 1 = High, 3 = Normal, 5 = low
$mail->Send();
?>
We already sent password to
echo $email; ?>
|
} ?>
|
|
|
|