Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/10/2004, 14:15
lizfranco
 
Fecha de Ingreso: abril-2003
Mensajes: 150
Antigüedad: 21 años
Puntos: 1
email en formato HTML

Cordial saludo,

Cómo puedo hacer para poder ver el html en cualquier cliente de mail. Tengo el siguiente código pero solo funciona en hotmail. En los demas muestra el código.


Código PHP:
@extract($_POST);
$name stripslashes($name);
$email stripslashes($email);
$subject stripslashes($subject);
$text stripslashes($text);
$message "
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>

<body>
<table width='712' border='1' bordercolor='#0000FF'>
  <tr>
    <td width='706' ><div align='center'><img src='http://www.mail.net/images/banner.jpg' width='780' height='98'></div></td>
  </tr>
  <tr>
    <td bordercolor='white' height=?8'>&nbsp;</td>
  </tr>
  <tr>
    <td>"
.$text."</td>
  </tr>
</table>
</body>
</html>"
;

$redirect "done.htm"

mail('[email protected]',$subject,$message,"From: $name <$email>");
foreach(
$HTTP_POST_VARS as $key => $value) { 

$text .= $key ': ' $value
$text .= '\n'


if (@
mail($email$subject$message)) { 

header("Location: $redirect"); 
} else { 

echo(
'<p>No se pudo enviar el mail. Intentelo de nuevo.</p>'); 



--------------
Gracias de antemano
Liz

Última edición por lizfranco; 27/10/2004 a las 14:33