![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/11/2005, 12:50
|
![Avatar de flaconovato](http://static.forosdelweb.com/customavatars/avatar120813_2.gif) | | | Fecha de Ingreso: noviembre-2005 Ubicación: Bogota, Colombia
Mensajes: 137
Antigüedad: 19 años, 3 meses Puntos: 1 | |
Enviar Correo con Formato HTML?? Mira yo lo hice de la siguiente manera... espero que te sirva Código PHP: $agredecimiento = '<html>
<head>
<title>Titulo</title>
</head>
<body>
<table width="70%" border="0" align="center" cellspacing="2" bgcolor="#3871A4">
<tr>
<th scope="col"><span style="color:#FFFFFF; font-weight:bold;">MUCHAS GRACIAS POR ESCRIBIRNOS, SU SOLICITUD Y SUGERENCIAS SON MUY IMPORTANTES PARA NOSOTROS, OPORTUNAMENTE RECIBIRA RESPUESTA.</span></th>
</tr>
<tr>
<td><div align="center" style="color:#FFFFFF; font-weight:bold;"><strong>CORDIALMENTE,</strong></div></td>
</tr>
<tr>
<td><div align="center" style="color:#FFFFFF; font-weight:bold;"><strong>FLACO NOVATO S.A.</strong></div></td>
</tr>
<tr>
<td><div align="center"><img src="http://www.dominio.com/imagenes/logo.jpg" width="158" height="41"></div></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";
$cabeceras .= 'From: FlacoNovato <[email protected]>' . "\r\n";
mail(correo@dominio.com,"FlacoNovato",$agredecimiento,$cabeceras);
y listo espero que te sirva El pueblo que se resigna a tecnologías pasadas, sucumbe en el campo de la ignorancia y se entierra en sus ideales. |