Exemplo n.º 1
0
 public function validateForm($post = array())
 {
     if (!Form::isValidated()) {
         Form::validate($post);
     }
     $this->From = Form::getFromEmail();
     $this->FromName = Form::getFromName();
     $this->Subject = Form::getMailSubject();
     $this->Body = Form::getMailBody();
     $email = $this->config['email'];
     $this->TO = Form::getToEmail();
     $this->CC = empty($email['cc']) ? '' : $email['cc'];
     $this->BCC = empty($email['bcc']) ? '' : $email['bcc'];
 }