I could probably post the changes I made but it will require server access and access to cron jobs.
The idea is save every email into the database (something like queue) and run "independent" script which will send out the emails. But again, without root access it probably not possible.