ob_start(); session_start(); include("includes/dbconfig.php"); if(isset($_POST['email'])) { $selemail="Select * from pro_users where email='".$_POST['email']."'"; $rs = getSqlQuery($selemail); $n_rows=mysql_num_rows($rs); if($n_rows>'0') { $res=getSqlFetch($rs); //echo $res['fname'];echo $res['password'];exit; extract($res); include("includes/class.phpmailer.php"); include("includes/class.smtp.php"); include("includes/forgor_password.php"); $mail = new PHPMailer(); $mail->IsMail(); //$mail->IsSMTP(); // set mailer to use SMTP //$mail->Host = "www.richerwebs.com"; // specify main and backup server //$mail->SMTPAuth = true; // turn on SMTP authentication //$mail->Username = "nazia@richerwebs.com"; // SMTP username //$mail->Password = "rwnazia"; // SMTP password //$mail->From = "rajesh@richerwebs.com"; //$mail->FromName = "rajesh@richerwebs.com"; $mail->From = "admin@hotprofolios.com"; $mail->FromName = "admin@hotprofolios.com"; $mail->AddAddress($email);// $mail->AddReplyTo("admin@hotprofolios.com"); $mail->IsHTML(true); // set email format to HTML $mail->Subject = "Password details from Hot Profolios "; $mail->Body = $message_admin; $mail->AltBody = "This is the body in plain text for non-HTML mail clients"; $mail->Send(); unset($_POST); $sta='sent'; //header("location:forgot_password.php?sta='sent'"); } else { $sta='notsent'; //header("location:forgot_password.php?sta='notsent'"); } } ?>
| |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
|