Tema: mail html
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/07/2006, 12:06
ojota
 
Fecha de Ingreso: julio-2003
Ubicación: Buenos Aires
Mensajes: 96
Antigüedad: 20 años, 9 meses
Puntos: 0
mail html

ultimamente estoy teniendo problemas con la funcion mail, incluso con ejemplos copiados literalmente del manual, como:

<?php

$subject = 'Wakeup bob!';
$message = '<b>yo</b>, whassup?';
$headers = "From: [email protected]\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('[email protected]', $subject, $message, $headers);

?>

el mail llega pero es como si no interpretara el codigo html, mostrando:

MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<b>yo</b>, whassup?

incluso en diferentes clientes de correo, que leen perfectamente mails html. ¿alguna idea de lo que puede ser? gracias.