if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$body = "Nombre: " . $_POST["nombre"] . "\r\n";
$body .= "Telefono: " . $_POST["tel"] . "\r\n";
$body .= "Mail: " . $_POST["mail"] . "\r\n";
$body .= "Comentario: " . $_POST["comentario"] . "\r\n";
$to = 'info@classepropiedades.com.ar';
$subject = 'Mensaje desde la web';
$headers = "From: server@barnyard.com\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
// Send
mail($to,$subject,$body,$headers);
header("Location:index.html");
ob_end_flush();
}
?>
RECPLAY :::