neves
8/6/2011 - 9:22 PM

gistfile1.aw

<?php
extract($_POST);
var_dump($_POST);
exit;

$subject = "Contato";
$html = "
<html>
	<body>
	<table width=400 border=0>
	  <tr>
		<td width=100>Nome</td>
		<td width=300>$nome</td>
	  </tr>
	  <tr>
		<td>Cidade</td>
		<td>$cidade</td>
	  </tr>
	  <tr>
		<td>Estado</td>
		<td>$estado</td>
	  </tr>
	  <tr>
		<td>E-mail</td>
		<td>$email</td>
	  </tr>
	  <tr>
		<td>Telefone</td>
		<td>$telefone</td>
	  </tr>
	  <tr>
		<td>Mensagem</td>
		<td>$mensagem</td>
	  </tr>
	</table>
	</body>
</html>";


$headers = "From: Contato Site <contato@2face.com.br>\r\n";
$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers.= "MIME-Version: 1.0 ";

if (mail($email_de_envio, $subject, $html, $headers)) {
	echo "<script>window.alert('Formulario enviado com sucesso!'); </script>";
	echo "<script>window.location = 'index2.php';</script>";
}else{
	echo "Ocorreu um erro durante o envio do email."; 
}

?>