I've just recently been asked to develop a PHP application that allows mass emailing. To do this, I have a PHP script that simply grabs the email addresses from a MySQLDatabase and loops through them personalising each one, and then sending them.
It works absolutely fine, however we have a slight issue in that whilst this PHP script is running (and it obviously takes several minutes to run) the user cannot do anything else on the application. Other people can access it, but the user in question cannot load any other page of the application whilst the emails are sending.
Is there some way of dealing with this or is this just something we are going to have to live with?