# formulário de envio de e-mail com PHP
# Autor: André Gonçalves
?>
alert('Por favor digite seu nome!');
history.back();
document.fale.nome.focus();
document.fale.nome.select();
");
}
if ($email == "") {
print("");
}
if ($assunto == "") {
print("");
}
if ($texto == "") {
print("");
}
else {
$msg = "$nome entra em contato através do site
\n";
$msg .= "De: $nome
\n";
$msg .= "E-mail: $email
\n";
$msg .= "Assunto: $assunto
\n";
$msg .= nl2br($texto)."
\n";
$msg .= "
";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $nome <$email>\r\n";
$headers .= "Cc: \r\n";
$headers .= "Bcc: \r\n";
mail("coloque aqui seu e-mail",$assunto,$msg,$headers);
echo "";
}
}
?>