public function testtrans() { $emailAddress = '*****@*****.**'; $mailer = 'PHPMailer'; $mailer = ROOT_NAMESPACE . '\\Emails\\' . $mailer . '\\Emails'; //Fully quallified namespace $email = new EmailBase(new $mailer()); $email->transactionalEmail($emailAddress, __METHOD__, __CLASS__); $this->view('pages/blank', array('email' => $emailAddress)); }
public function forgotpassword() { $login = new SecureSiteBase(); $login->setFramework(new SMVC\SecureSite\Bootstrap\SecurityForms()); if (isset($_POST['emailAddress'])) { $mailer = 'InternalMailer'; $mailer = ROOT_NAMESPACE . '\\Emails\\' . $mailer . '\\Emails'; //Fully quallified namespace $email = new EmailBase(new $mailer()); $email->transactionalEmail('*****@*****.**', 'Temporary password', $login->tempPasswordEmailBody($_POST['emailAddress'])); } $this->view('pages/landingPage', array('form' => $login->passwordReminderForm())); }