cuek... abajo dice "NO LO REVISE... SOLO LO HICE A LA RAPIDA Y PARA QUE VEAS CUAL ES EL PUNTO DE VISTA DE DONDE DEBES MIRARLO"
Amigo... no te hice la tarea... solo te estoy diciendo que debes enviar el mail en el while o hacerte un arreglo para que los datos no esten todos juntos.
Suerte!