Prueba con esto haber si te sirve, si no es asi dimelo por si me he confundido en algún detallito:
<php
ABRIR CONEXION CON LA BB.DD.
$result = mysql_query("SELECT * FROM [bb.dd.]);
while ( $row = mysql_fetch_array($result) ) {
define (NL,"\r\n");
$extra="From:
[email protected]";
@mail("$row["
[email protected]"]","ASUNTO","
TEXTO DEL MENSAJE A ENVIAR, APARECERA EN EL EMAIL TAL COMO ESTA ESCRITO, PUEDES METER VARIABLES TAMBIEN
",$extra);
}
?>