Exemple #1
0
 public function processa()
 {
     if (!$this->printErro()) {
         $this->manEmail->setRementente("Site @ Mep Group")->setAssunto("Contato via Fale conosco")->setNome(\Mep\Handlers\FiltroPost::USERNAME())->setEmail(\Mep\Handlers\FiltroPost::EMAIL())->setMensagem(\Mep\Handlers\FiltroPost::MENSAGEM());
         $this->manEmail->prepara()->processa();
         try {
             $this->manEmail->addDestinatario("*****@*****.**", "Marcos Ammon")->enviaEmail();
             echo "Formulário Processado";
         } catch (\Exception $ex) {
             $this->printErro($ex->getMessage());
         }
     }
     return;
 }
Exemple #2
0
require_once "Mep/init.php";
use Mep\Handlers\FiltroPost as Post;
?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Validation</title>
    </head>
    <body>
        <form action="" method="post">
            <div>
                Username:<input type="text" name="username" value="<?php 
echo Post::USERNAME();
?>
"> 
            </div>
            <div>
                Email:<input type="text" name="email" value="<?php 
echo Post::EMAIL();
?>
">
            </div>
            <div>
                Mensagem:<br>
                <textarea name="mensagem"><?php 
echo Post::MENSAGEM();
?>
</textarea>