Re: Mail con contenido HTML
| From: | Julio Herrera - Directo | Date: | Thu, 28 Mar 2002 17:21:59 +0000 |
| Subject: | Re: Mail con contenido HTML | ||
| References: | 1 2 3 4 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-20862@lists.php.net to get a copy of this message | ||
Prueba esto:
<?PHP
$destino = "email@destino.com";
$asunto = "Esto fue hecho con PHP";
$email_remitente = "email@remitente.com";
$mensaje = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
Transitional//EN\">".
"<HTML><HEAD><TITLE>EVERLAST</TITLE>".
"<META content=\"text/html; charset=iso-8859-1\"
http-equiv=Content-Type>".
"<LINK REL=\"stylesheet\" HREF=\"http://www.everlast.cl/everlast.css\"
TYPE=\"text/css\">".
"</head>".
"<body bgcolor=\"#FFFFFF\" text=\"#000000\"
topmargin=\"3\">".
"<div align=\"center\"></div><table width=\"674\"
border=\"0\"
cellspacing=\"0\" cellpadding=\"0\" height=\"330\"> ".
"<tr valign=\"top\"> <td width=\"195\"> <table
width=\"149\" border=\"0\"
cellspacing=\"0\" cellpadding=\"0\" height=\"334\"> ".
"<tr> <td height=\"115\" valign=\"top\"><img
src=\"http://www.everlast.cl/imags/logo_everlast.gif\"
width=\"145\"
height=\"101\" alt=\"EVERLAST\" border=\"0\"><BR><SPAN
CLASS=\"textdieta\">Under ".
"License from trade mark owner Everlast world's boxing Headquarters
Corporation. ".
"NY U.S.A. 2001.</SPAN></td></tr> <tr> <td height=\"41\"
valign=\"top\"> </td></tr> ".
"<tr> <td height=\"132\" valign=\"bottom\"> ".
" <br> <br> ".
" <br> ".
" </td></tr> ".
"</table></td><td width=\"193\"> </td><td
width=\"286\"> <div
align=\"right\"><img src=\"http://www.everlast.cl/imags/port01.jpg\"
width=\"233\" height=\"332\"
alt=\"EVERLAST\"></div></td></tr> ".
"</table><TABLE WIDTH=\"674\" BORDER=\"0\"
CELLSPACING=\"0\"
CELLPADDING=\"0\"> <TR VALIGN=\"top\"> ".
"<TD WIDTH=\"674\" HEIGHT=\"5\" BGCOLOR=\"#959595\">
<DIV
ALIGN=\"center\"> </DIV></TD></TR> ".
"</TABLE>".
"</body>".
"</html>";
mail($destino, $asunto, $mensaje, "From: \"Nombre del que manda\"
<$email_remitente>\nErrors-To: \"Mismo Nombre\"
<correo@remitente.com>\n<MIME-Version: 1.0\nContent-Type: text/html;
charset=us-ascii\nContent-Transfer-Encoding: 7bit");
----- Original Message -----
From: "Leonardo Ormazabal" <lormazabal@portalminero.com>
To: <lista@phpes.com>
Sent: Thursday, March 28, 2002 12:45 PM
Subject: [PHP-ES] Mail con contenido HTML
> Hola phpinos, que tal
> Les tengo una consultilla, a ver si me ayudan
> Como puedo, con la funcion mail, agregar, a lo que corresponde al
contenido
> del mail, un archivo en formato HTML.
> Bueno, se que puedo tener un archivo que tenga lo que necesito, pero como
se
> lo agrego al mail, la funcion file() o readfile() no me ayudan mucho ??
>
> Ojala se le ocurra algo...
>
> Chau
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> via news: news://news.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com