Пример #1
0
 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));
 }
Пример #2
0
 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()));
 }