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>¡Aquí están los cumpleaños que llegan en Agosto!</p>
<table>
<tr>
<th>Persona</th><th>Día</th><th>Mes</th><th>Añ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!