hola execon, he copiado tu código tal como lo poner, cambio las variables del mail, para el mensaje, email, y asunto que coge del formulario, bueno te pego el código:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From:
[email protected] <
[email protected]>\r\n";
$headers .= "Reply-To:
[email protected]\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
mail($to, $aunto, $message,$headers);
y luego en el campo de texto le mete el siguiente código html:
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Pagina nueva 1</title>
</head>
<body>
<table border="1" width="100%">
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">5</td>
<td width="25%">6</td>
<td width="25%">7</td>
<td width="25%">8</td>
</tr>
<tr>
<td width="25%">9</td>
<td width="25%">10</td>
<td width="25%">11</td>
<td width="25%">12</td>
</tr>
<tr>
<td width="25%">131</td>
<td width="25%">14</td>
<td width="25%">15</td>
<td width="25%">16</td>
</tr>
</table>
</body>
</html>
y recibo esto:
MIME-Version: 1.0
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
Content-type: text/html; charset=iso-8859-1
Content-type: text/html; charset=iso-8859-1
From:
[email protected] <
[email protected]>
Reply-To:
[email protected]
X-Mailer: PHP/4.1.0
X-Mailer: PHP/4.1.0
X-Mailer: PHP/4.1.0
X-MM-Mail-From-Script: /prueba/correo.php
X-Complains-To:
[email protected]
X-MM-Mail-From-IP: 217.126.245.44
Errors-To:
[email protected]
Message-Id: <
[email protected]> ;
Date: Thu, 27 Jun 2002 15:30:50 +0200 (CEST)
y sigue el código html que pege antes, que hago mal!