Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/06/2006, 10:58
mjoseandrea
 
Fecha de Ingreso: abril-2004
Mensajes: 39
Antigüedad: 20 años
Puntos: 0
Hola Cluster. Este es el código que utilizo:

<?

// mensaje
$mensaje = "
<html>
<head>
<title>Recordatorios de Cumplea&ntilde;os para Agosto</title>
</head>
<body>
<p>&iexcl;Aqu&iacute; est&aacute;n los cumplea&ntilde;os que vienen
en Agosto!</p>
<table>
<tr>
<th>Persona</th><th>D&iacute;a</th><th>Mes</th><th>A&ntilde;o</th>
</tr>
<tr>
<td>Juan</td><td>3</td><td>Agosto</td><td>1970</td>
</tr>
<tr>
<td>Sandra</td><td>17</td><td>Agosto</td><td>1973</td>
</tr>
</table>
</body>
</html>
";

// Para enviar correo HTML, la cabecera Content-type debe definirse
$cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Enviarlo
$para="[email protected]";
$asunto="prueba de la funcion mail";
mail($para, $asunto, $mensaje, $cabaceras);


?>


y no me lo envía con formato html.

Sabes por qué??

Muchas gracias