Exemplo n.º 1
0
 public function indexAction()
 {
     if (!$this->getRequest()->isPost()) {
         return;
     }
     $Configuration = new Model_Configuration();
     $data = $this->getRequest()->getParams();
     // Sandra - acessar ciclo atual
     $currentYearRow = $Configuration->getConfigurationByConfKey('competitionIdKey');
     $this->view->ciclo = $currentYearRow->getConfValue();
     $to = '*****@*****.**';
     $subject = 'Mulher de Negócios 2014 :: Contado enviado pelo site';
     $message = nl2br($data['contact']['message']);
     Model_EmailMessage::createQuicklyWithRecipients('contact_notification', $subject, $message, array($to));
     $this->view->itemSendSuccess = true;
 }