Ver Mensaje Individual
  #20 (permalink)  
Antiguo 31/10/2007, 12:08
Avatar de Marvin
Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 19 años, 3 meses
Puntos: 81
Re: Envío de e-mail a múltiples destinatarios con PHP

Bueno... eso es mas facil y te voy a poner un ejemplo aca:

Código PHP:
$arrNombres = array('Juan','Sandra');
$mensaje '  
<html>  
<head>  
<title>Prueba</title>  
</head>  
<body>  
<p>&iexcl;Aqu&iacute; est&aacute;n los cumplea&ntilde;os que llegan en Agosto!</p>  
<table>  
<tr>  
  <th>Persona</th><th>D&iacute;a</th><th>Mes</th><th>A&ntilde;o</th>  
</tr>'
;

for(
$i=0;$i<count($arrNombres);$i++){ 
    
$mensaje .= '
<tr>  
  <td>'
.$arrNombres[$i].'</td><td>3</td><td>August</td><td>1970</td>  
</tr>'
;
}
$mensaje .= '
</table>  
</body>  
</html>  
'
;

Con .= lo que haces es agregarle datos a una variable.

Suerte!
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!