Your suggestion talks of a perpetual while loop running in the background and sleeping for a few seconds after every loop when sending a large batch of emails.
I am curious how you get around the timeout / execution settings in php.ini if it is running perpetually? .. or have I misunderstood (quite possibly)?
I'm thinking of options like:
max_execution_time;
max_input_time;
(and possibly) default_socket_timeout.
All have values set and you have to modify them, obviously you need to know how to long to extend them, but if the loop is perpetual then how do you get around this?
I've had some problems with scripts timing out when sending large batches and so I'm very curious
cheers,
paul