Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tipo = $_POST['tipo'];
- $nome = $_POST['nome'];
- $email = $_POST['email'];
- $assunto = $_POST['assunto'];
- $mensagem = $_POST['mensagem'];
- $mens = "<font face='Verdana, Arial, Helvetica, sans-serif' size='1'>" . PHP_EOL;
- $mens .= "<strong>Chama Sports - Fomulário de Contato</strong>" . PHP_EOL . PHP_EOL;
- $mens .= "---------------------------------------------" . PHP_EOL;
- $mens .= "<strong>Tipo de Pessoa:</strong>" . $tipo . PHP_EOL;
- $mens .= "---------------------------------------------" . PHP_EOL;
- $mens .= "<strong>Nome:</strong> " . $nome . PHP_EOL;
- $mens .= "---------------------------------------------" . PHP_EOL;
- $mens .= "<strong>Email:</strong> " . $email . PHP_EOL;
- $mens .= "---------------------------------------------" . PHP_EOL;
- $mens .= "<strong>Assunto:</strong> " . $assunto . PHP_EOL;
- $mens .= "---------------------------------------------" . PHP_EOL;
- $mens .= "<strong>Mensagem:</strong> " . htmlspecialchars($mensagem) . PHP_EOL;
- $mens .= "---------------------------------------------" . PHP_EOL;
- $mens .= "\n";
- $mens .= "\n";
- $mens .= "Enviada em ".date("d/m/Y"). "\n";
- $from = $nome . "<" . $email . ">";
- $headers = "MIME-Version: 1.1" . PHP_EOL;
- $headers .= "Content-type: text/html; charset=utf-8" . PHP_EOL;
- $headers .= "From: " . $from . PHP_EOL;
- $headers .= "Reply-To: " . $from . PHP_EOL;
- mail("fellippetri@gmail.com","$assunto (FORMULÁRIO DE CONTATO - Chama Sports)",$mens,$headers);
- ?>
Add Comment
Please, Sign In to add comment