if (!empty($_POST)):
$nome = strtoupper($_REQUEST["nome"]);
$telefone = $_REQUEST["telefone"];
$email = strtolower($_REQUEST["email"]);
$mensagem = $_REQUEST["mensagem"];
$emailenvio = "i37@i37.com.br";
if ($email != ""):
$email = $_POST["email"];
$email = str_replace (" ", "", $email);
$email = str_replace ("/", "", $email);
$email = str_replace ("@.", "@", $email);
$email = str_replace (".@", "@", $email);
$email = str_replace (",", ".", $email);
$email = str_replace (";", ".", $email);
$erro=0;
if(strlen($email)<8 || substr_count($email, "@")!=1 || substr_count($email, ".")==0):
$erro=1;
echo "";
exit;
endif;
endif;
$assunto = "JUREIA HOTEL - Contato Via Site";
$msg = "Nome: $nome
\n";
$msg .= "Telefone: $telefone
\n";
$msg .= "E-mail: $email
\n";
$msg .= "
\n";
$msg .= "Mensagem: $mensagem
\n";
$msg .= "