Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/06/2006, 03:14
luigi23
 
Fecha de Ingreso: abril-2005
Mensajes: 55
Antigüedad: 19 años
Puntos: 2
envío mails con formato html a cuentas gmail

Hola.

Tengo un problemilla. Hago un envío de mail en php con formato html y el destinatario lo puede ver bien menos en gmail, que se muestra en texto plano.

Lo he hecho con la función mail, el código es el siguiente:
Código:
<?
$destino = [email protected];

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: [email protected]";

$asunto = "el asunto del mail";

$mensaje = "<html><head></head><body>";
$mensaje .= "<p>El contenido del mensaje</p>";
$mensaje .= "</body></html>";

mail ($destino, $asunto, $mensaje, $headers);
?>
En gmail el mensaje llega con el remitente "(remitente desconocido)
a usuario", a continuación muestra Content-type: text/html; charset=iso-8859-1

From: [email protected]
Message-Id: <20060620090704.B30514...@...>
Date: Tue, 20 ...

<html><head></head><body><p>El contenido del mensaje</p></body></html>

¿Alguien sabe qué puede ser? Sólo me ocurre con gmail, en hotmail funciona ok.

Saludos
__________________
Portal de Apuestas por Internet