Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/03/2007, 11:51
Avatar de gerson
gerson
 
Fecha de Ingreso: febrero-2005
Ubicación: Lima
Mensajes: 481
Antigüedad: 19 años, 2 meses
Puntos: 4
Re: correo no se visualiza con formato

Bueno te falta agregar el tu variable headers a la funcion mail(); no me habia dado cuenta
Código PHP:
                             <?php
$headers 
"MIME-Version: 1.0\r\n"
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"
$MailTo="[email protected]";
$dia=date("m.d.Y");
$hora=date("H:i:s");
$contenido="
<html>
<head>Mensaje</head>
<body>
<b><h3>MENSAJE DE LA WEB</h3></b>
El Mensaje se Envio el  $dia a las $hora:<br>\n\n
----------------------------------------------------------------------------<br>\n
Nombre $nombre<br>\n
Telefono: $telefono<br>\n
E-mail: $mail<br>\n
----------------------------------------------------------------------------<br>\n
Subject: $sub<br>\n
----------------------------------------------------------------------------<br>\n
Mensaje: $comentario<br>\n
----------------------------------------------------------------------------<br>\n
</body>
</html>
"
;
mail($MailTo"$subject  $sub"$contenido"From: $mail\r\n" .  $headers);
?>
__________________