note 89814 deleted from book.mail by danbrown
| From: | danbrown@php.net | Date: | Tue, 24 Mar 2009 14:40:19 +0000 |
| Subject: | note 89814 deleted from book.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152386@lists.php.net to get a copy of this message | ||
Note Submitter: c-s-w at hotmail dot com
Reason: non-english
----
<?php
if(isset($_POST['nome']) && isset($_POST['email']) &&
isset($_POST['telefone']) && isset($_POST['assunto']))
{
$content = "Nome: ".$_POST['nome']."<br>";
$content .= "E-mail: ".$_POST['email']."<br>";
$content .= "Telefone: ".$_POST['telefone']."<br>";
$content .= "Assunto: ".$_POST['assunto']."<br>";
$destinatario = "email@jshjshjd.com.br";
$por = "Meu_email@kdjfkdjfkdjk.com";
$cabecario = "Nova Mensagem de contato";
if(mail($destinatario,$cabecario,$content,"FROM:".$por.""))
{
echo "<script>alert('Obrigado ".$_POST['nome']." por entrar em
contato conosco!');</script>";
}
}
?>