require_once("phpmailer/class.phpmailer.php"); ?> if ($totalRows_password > 0) { // Send email $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = "mountkenya.fagerlind.com"; // SMTP servers $mail->Port = 366; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "shoplagom-mail1"; // SMTP username $mail->Password = "UUw94BmsA"; // SMTP password $mail->FromName = 'Blog Links for Money'; $mail->From = 'support@bloglinksformoney.com'; $toemail = $row_password['email']; $mail->AddAddress($toemail, $toemail); $mail->Subject = 'Lost password'; $mail->IsHTML(true); // Mailpart with code if not verified if ($row_password['confirm'] <> '') { $code = $row_password['confirm']; $codeText = "
Your account has not yet been confirmed. You will be asked to provide a confirmation code the first time you log in.
Your confirmation code is: $code
"; } else { $codeText = ""; } // Mailpart with password $pass = $row_password['password']; $un = $row_password['membername']; $mail_body = <<< _mailend_Here is your password
Someone has requested that we remind you of your account information. Log in with the following username and password.
Username: $un
Password: $pass
/Perrow
Blog Links for Money
support@bloglinksformoney.com
An email with your password has been sent.
} else { ?>Enter your e-mail address below and we'll send your password.
} ?> include("templates/part2.php"); ?>