<?php
extract($_POST);
// subject
$subject = 'NUEVO CONTACTO ';
// message
$message = '
<html>
<head>
<title>Nuevo contacto </title>
</head>
<body>
<p>NUEVO CONTACTO </p>
<table>
<tr>
<th>Nombre</th><td>'. utf8_decode($nombre).'</td>
</tr>
<tr>
<th>E-mail</th><td>'. utf8_decode($email).'</td>
</tr>
<tr>
<th>Empresa</th><td>'. utf8_decode($empresa).'</td>
</tr>
<tr>
<th>Mensaje</th><td>'. utf8_decode($mensaje).'</td>
</tr>
</table>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To:
[email protected]' . "\r\n";
$headers .= 'From: '.$email."\r\n";
// Mail it
$recibido = @mail("", $subject, $message, $headers);
?>