GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("connect.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); include("variables.php"); $femail=$_POST['femail']; $fseluser=$_POST['fseluser']; // check record we have or not if($fseluser==1){ $sql="SELECT * FROM `app_admin` WHERE `emailid`='".$femail."'"; }else{ $sql="SELECT * FROM `admin_user` WHERE `username`='".$femail."'"; } $rs=mysqli_query($conn,$sql); $check=mysqli_num_rows($rs); $row=mysqli_fetch_assoc($rs); if($check>0) { if($fseluser==1){ $pass=$row["pwdd"]; }else { $pass=$row["password"]; } // send mail $to =$femail; $subject = "Password Recovery"; $message = " <html> <head> <title>Forget password recovery</title> </head> <body> <p>Dear user,<br><br> Your have request for forget password. <br>, Your password recovery details are given below : <br><br> </p> Emaild: ".$femail."<br> Password: ".$pass." <br> Date : ".date('Y-m-d')." <br> <br><br><img src='https://quepapa.in/admin.cpanel/prod_image/12080_Que_Papa_logo_VP-03-01.png' style='width:120px; height:50px'><br><br> mail server : <a href='http://techeor.co.in/'>Techeor Technology</a> </body> </html> "; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: info@quepapa.in' . "\r\n"; $headers .= 'Cc:'.$femail. "\r\n"; $data=mail($to,$subject,$message,$headers); if($data>0){ echo '<script>alert("Dear user, Your password has been send to given email id, Please visit your email id");</script>'; echo '<script>window.location.href="login.php";</script>'; } else { echo '<script>alert("Dear user, We are unable to prcess your request at this time, please try again");</script>'; echo '<script>window.location.href="login.php";</script>'; } } else { echo '<script>alert("Invalid credential");</script>'; echo '<script>window.location.href="forgetPassword.php";</script>'; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Fetching details...</title> </head> <body> <div id="overlay" onclick="off()"><img src="images/loader.gif" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100"></div> <style type="text/css"> #overlay { position: fixed; width: 100%; height: 100%; display: block; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 999; cursor: pointer; } </style> </body> </html>