26/02/2008, 14:12
|
| | | Fecha de Ingreso: diciembre-2006 Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 17 años, 4 meses Puntos: 36 | |
Re: Publicidad Para Mail Código PHP: <?php $remitente = "[email protected]"; $codigohtml = ' <table width="500" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"><a href="http://www.misitio.com"><img src="http://www.solophotoshop.com/imgarticulos/397/firefox-solophotoshop.jpg" width="500" height="293" border="0"></a></td> </tr> </table> '; $asunto = "Soluciones Inteligentes :: Para Negocios Inteligentes"; // No modifiques el codigo de abajo $cabeceras .= "From: $remitente\n"; $cabeceras .= "Content-Type: text/html\n"; $i = 0; $fp = fopen ("libro1.csv","r"); while ($data = fgetcsv ($fp, 1000, ";")) { $i++; if($i > 1){ $destino = explode(",",$data[0]); mail($destino[1], $asunto, $codigohtml, $cabeceras); echo $destino[1]; echo "<BR>"; } } fclose ($fp); ?> |