Log in

View Full Version : Problem with emailing from Cron job


bchertov
01-14-2007, 02:16 AM
Hi,

I have created a cron job to send out the bulk emails from the mailqueue rather than having them sent out at the end of each page (the emails were making the page load really slowly).

cron job calls exec_mail_queue() to send the emails. It works just fine when I click Run Now from the admin panel, and it seems to work when in runs automatically, but no emails get sent.

What's up?

Thanks!
Barry

bchertov
01-15-2007, 01:36 PM
I found the problem: $vbulletin->mailqueue does not have the current value when the cron job starts up. I reset it from a query and all is well. Thanks!