Пример #1
0
 public function executeTeste(Content &$objContent)
 {
     $objContent->getObjTemplate()->setLayout('Red');
     $objEmail = new Phpmailer();
     $body = "Olá mundo.";
     //$objEmail->IsSendmail();
     $objEmail->MsgHTML("Ola Mundo");
     $objEmail->AddAddress("*****@*****.**");
     $objEmail->SetFrom("*****@*****.**");
     $objEmail->Subject = "OKOKO";
     if (!$objEmail->Send()) {
         $log = new Log();
         $log->setLog(__FILE__, "Mailer Error: " . $objEmail->ErrorInfo);
         $this->var2 = "Mailer Error: " . $objEmail->ErrorInfo;
     }
     $this->var1 = $this->getRequestParameter('número') * 20;
     $this->var2 = "Success!!";
     $this->forward1 = $this->getRequestParameter('número');
     $this->forward2 = $this->getRequestParameter('oba');
     $this->link = Headers::linkTo('Default', 'Index', array('culture' => $objContent->getObjCulture()->getCulture()));
     var_dump(Headers::linkToCss('Default', 'estilos.css'));
 }