include "manager/dbconf.php"; if(isset($_POST["email"])){ $query = mysql_query("select email from users where email='$_POST[email]'") or die(mysql_error()); $nums = mysql_num_rows($query); if($nums > 0){ $pquery = mysql_query("select * from users where email='$_POST[email]'") or die(mysql_error()); $row = mysql_fetch_array($pquery); //Class php mailer require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "biz24.inmotionhosting.com"; // SMTP server $mail->Username = "webmail@qinway.org"; // replace with your smtp username (if SMTPAuth is true) $mail->Password = "letmein"; // replace with your smtp password (if SMTPAuth is true) $mail->SMTPAuth = true; $mail->Mailer = "smtp"; $mail->From = "930@qinway.org"; $mail->FromName = "Qinway Qigong Institute"; $mail->AddAddress("".$row["email"].""); $mail->Subject = "Qinway Qigong Student Window Login"; $messageproper = "Bellow are your account informations :\n" . "------------------------------------------------\n" . "E-mail : ".$row["email"]."\n" . "Password : ".$row["truepass"]."\n" . "------------------------------------------------\n"; $mail->Body = $messageproper; $mail->WordWrap = 50; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; exit(); } //--> /* $mailto = "".$row["email"].""; $subject = "Qinway Qigong Student Window Login"; $name = "Qinway Qigong Institute"; $email = "930@qinway.org"; $messageproper = "Bellow are your account informations :\n" . "------------------------------------------------\n" . "E-mail : ".$row["email"]."\n" . "New Password : ".$row["password"]."\n" . "------------------------------------------------\n"; mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: weblogix V.2.0"); */ echo ""; }else{ echo ""; } } ?>
W |
E
N E R G I Z E D |
S t u d e n t L o g i n R e m i n d e rQigong . Natural Healing . Rejuvenation . Special Abilities . Enlightenment |
---|
|