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

$codeText

/Perrow
Blog Links for Money
support@bloglinksformoney.com

_mailend_; $mail->Body = $mail_body; if ($mail->send()) { //die("mail sent"); $email_sent = true; } else { //die("mail not sent"); } } ?>

Forgot your password?

An email with your password has been sent.

Enter your e-mail address below and we'll send your password.