getRow("SELECT * FROM members WHERE email = ?", array($gEmail)); $mail = new phpmailer(); // $mail->Mailer = "sendmail"; // $mail->Sendmail = '/usr/local/exim/bin/sendmail'; $mail->From = 'info@followthemedia.com'; $mail->FromName = 'followthemedia'; $mail->Subject = 'Forgot Password!'; $mail->Body = 'User Name: ' . $l_mem_row['email'] . "\nPassword: " . decryptPass($l_mem_row['pass']); $mail->AddAddress($l_mem_row['email'], $l_mem_row['fname'] . ' ' . $l_mem_row['lname']); $mail->Send(); Header("Location: /forgot.php?s=1"); exit; } } $p = new SitePage(); $l_templ = array(); $l_val = array(); $l_templ[] = 'err'; $l_val[] = $gErr; $l_templ[] = 'email'; $l_val[] = $gEmail; $p->SetContents('tpl/forgot.tpl.php', 1, $l_val, $l_templ); if ($_GET['s'] && !$_POST['frm']) { $p->RemoveComment('FORM'); } else { $p->RemoveComment('SUCCESS'); } $p->GetDetails(); $p->ReplaceTag('redtag', 'Forgot password'); $p->Show(); CloseCon(); ?>