
November 15th, 2012, 10:32 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 2
Time spent in forums: 19 m 7 sec
Reputation Power: 0
|
|
|
Mail_queue hangs after c.150 inserts
Hi, I need help - I'm using a foreach loop to run through just over a thousand email addresses on a distribution list and put them into the mail_queue table prior to sending via cron overnight.
The loop executes fine and the onscreen output is completed as expected, however after about 150 inserts instead of returning the id, the error message "Mail Queue Error: Cannot connect to database" comes back for each iteration of the loop. The first 150 emails are committed to the db but the remainder aren't.
There is nothing obvious in any of the logs, all packages are up to date and the same sending system works fine on a small test db of ten or so addresses both before and after the attempted production run.
The emails are html email including two small images - I tried removing the images to see if the memory load was the problem and this didn't make any difference - it still hung same as before.
Anyone got any ideas of what I should check next or how to fix it?
|