[eluser]Phil Sturgeon[/eluser]
For a more basic solution, try a script that will do it 30 at a time. Each time make it print out a javascript redirect that will do the next 30 (by passinf some limit/offset values in the url).
Either that or have a CRON job that will run every few minutes like walesmd suggested. You can have a table that either stores the last userID emailed (so the next time cron is fired it can pick up on it) or you can have an param in the user DB. The last email the user recieved was emailID X.
Quote:if($user['last_email_id'] < $this->email_id) // send mail!