public function processa() { if (!$this->validacao->getMensagemErro()) { $this->manEmail->setRementente("Site @ Mep Group")->setAssunto("Contato via Site")->setNome(Post::NOME())->setEmail(Post::EMAIL())->setMensagem(\utf8_decode("Ola, preenchi o seu formulário de Servicos e me interessei pelos seguintes:<br>" . Post::SERVICOS_ESCOLHIDOS() . "<hr>Segue uma breve descrição do que quero fazer:<br>" . Post::MENSAGEM() . "<hr>" . "Se possível, no seguinte prazo:" . Post::PRAZO_ESCOLHIDO() . "<hr>Informo também os seguintes contatos:<br>\r\n Telefone:" . Post::TELEFONE() . "- Celular" . Post::CELULAR() . "- Estado:" . Post::UF())); $this->manEmail->prepara()->processa(); return function ($destinatario, $nome) { return $this->manEmail->addDestinatario($destinatario, $nome)->enviaEmail(); }; } throw new \Exception($this->printErro()); }
public function processa() { if (!$this->validacao->getMensagemErro()) { $this->manEmail->setRementente("Site @ Mep Group")->setAssunto(\Mep\Handlers\FiltroPost::ASSUNTO())->setNome(\Mep\Handlers\FiltroPost::NOME())->setEmail(\Mep\Handlers\FiltroPost::EMAIL())->setMensagem(\Mep\Handlers\FiltroPost::MENSAGEM() . "<br> Tel:" . \Mep\Handlers\FiltroPost::TELEFONE()); $this->manEmail->prepara()->processa(); return function ($destinatario, $nome) { return $this->manEmail->addDestinatario($destinatario, $nome)->enviaEmail(); }; } throw new \Exception($this->printErro()); }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Update, Insert and Delete</title> </head> <body> <form action="" method="post"> <div> Matricula:<input type="text" name="matricula" value="<?php echo Post::MATRICULA(); ?> "> </div> <div> Nome:<input type="text" name="nome" value="<?php echo Post::NOME(); ?> "> </div> <div> <?php echo \Mep\Container::getLayout()->renderSecurityField(); ?> <input type="submit"> </div> </form> </body> </html>