Q:

Gathering all emails from table for email

I would like to build a webpage that follows the system in vBulletin of emailing.
So, currently, the user table contains the user data: username, userfullname, useremail etc.
Basically, what I need is for this script to gather the emails of the users from the database.
Additionally, I'd like the email to be sent out invididually, not as one bunch, in stages such as in vBulletin.
How would I go about this?

A:

You could build a queue. Just enter those emails in a database and have a script running with cron every x minutes sending to those emails, the script should empty your queue each time it executes.
That way you can also avoid having to wait for the email function to end if you're executing in from a webpage

