Back to Modification Graveyard

Cron based e-mail queuing and sending
Mod Version: 1.06, by Paul M

This thread is in the Modification Graveyard.
vB Version: 3.5.x Rating: (0 vote - 0 average) Installs: 35
Released: 05 Feb 2006 Last Update: Never Downloads: 73
Not Supported  

This modification is no longer available or supported.

Cron based e-mail queuing and sending.

At the moment, if you send a large number of e-mails, vbulletin either puts them in it's queue and then attempts to send them as each user visits a page, or in the case of the ACP Email users inteface, sends them straight away. As a result your server can become seriously overloaded very quickly - so sending several thousand e-mails (like a newsletter) can become very difficult (hours spent clicking next in the ACP !).

As a result I did this very simple modification to our forum to overcome the problem, and have since been asked about it a couple of times, so here it is.

This does two things ;

1. E-mails from the ACP inteface are sent to the mail queue, not straight to the mail system.

2. The processing of the mail queue is set-up as a vb cron item.

Obviously for this to work, you must turn e-mail queuing on in the ACP options - set 'Use Mailqueue System' to yes, and 'Number of Emails to Send Per Batch' to a realistic value (based on the cron setting, as below).

There are two realisitc options for the cron job, you can either set it to run every minute, and set the items to be processed to something small (like 10), or you can do what we do and set it to run every 15 minutes, and set the items to be processed to something larger (like 150).

Remember, 10 per minute = 600 per hour, 150 per 15 minutes is also 600 per hour. The numbers really depend on how quick you want large queues processed, and how much your mail server can handle in one go.

Once working, when using the ACP mail users inteface, remember you can do 9999 at once (not 500 or whatever) as the mails will now go into the queue, not be sent direct.

Note: This will affect any queued e-mails such as subscription e-mails. It will not affect registration e-mails as they bypass queuing anyway.


History:

v1.06 : First Release.

Download

This modification cannot be downloaded.

Similar Mods

Administrative and Maintenance Tools Cron Based E-Mail Sending Modification Graveyard
Administrative and Maintenance Tools Cron Based E-Mail Sending Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024