Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Cron based e-mail sending Details »
Cron based e-mail sending
Mod Version: 3.8.001, by Paul M (Member) Paul M is offline
Developer Last Online: Jan 2018 I like it Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 3.8.x Rating: (22 votes - 4.73 average) Installs: 295
Released: 10 Jan 2009 Last Update: Never Downloads: 1695
Not Supported Uses Plugins Code Changes Additional Files Translations  

As of 24 Nov 2017 this modification has been withdrawn.

In default vBulletin, if you send a large number of e-mails, vbulletin either puts them in it's queue and attempts to send them as each user visits a page, or just simply tries to send them straight away (as is the case when you use the Administrators email users inteface).

The result of this can be that your server can gets seriously overloaded very quickly - or on many hosts, you get banned for exceeding their e-mail sending limits. This can make sending several thousand e-mails (like a newsletter) very difficult.

This modification does two things ;

1. The processing of the mail queue is set-up as a vbulletin cron item.

2. Allows you to add a small delay before each e-mail is sent (between 1 and 9 seconds).

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

Use option 2 carefully, otherwise you will slow your e-mail system right down.

For this to work, you must turn on e-mail queuing 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 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 this modification does by default and set it to run every 10 minutes, and set the items to be processed to something larger (like 100).

Remember, 10 per minute = 600 per hour, 100 per 10 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 set it to process 9999 at once (not 500 or whatever) as the mails will now go into the queue, not be sent directly.

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

This modification includes the code by Antivirus that displays the current size of the mail queue.


History:

v3.8.001 : First Release for vB 3.8.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Administrative and Maintenance Tools Cron Based E-Mail Sending Paul M Modification Graveyard 151 03 Jun 2010 04:17
Administrative and Maintenance Tools Cron Based E-Mail Sending Paul M Modification Graveyard 164 27 Sep 2009 15:57
Cron based e-mail queuing and sending Paul M Modification Graveyard 19 23 Oct 2006 01:57

  #271  
Old 26 Oct 2011, 07:20
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Hi Paul, quick question please.

I want to use this purely for when I send out bulk emails, so instead of installing and uninstalling each time, can I simply change from 'yes' to 'no' in the vb options for using the mailqueue system, will that then stop vb from using this mod and it will revert to sending out the emails normally? Or does this mod have to be removed before that will happen? Thanks.
__________________
Marine Aquariums
Reply With Quote
  #272  
Old 26 Oct 2011, 11:21
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
As far as I'm aware that would work. Its a long while since i did anything with the e-mail system.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #273  
Old 26 Oct 2011, 22:58
arkueckelhan arkueckelhan is offline
 
Join Date: Sep 2011
I have a large forum (about 80,000). I installed the mod and set batch size (in Email options) to 70 with a 6 second delay, and to process every 10 mins in the scheduled tasks. When I attempt to send emails from ACP> Users> "Send emails to users" the process will begin and it shows me emails sending successfully every 6 seconds. (on that page Emails to send at once is set to 500).

Is it possible for me to NOT keep this page open? It would take it like 8 days to run and I'm certain it would timeout within an hour. How do I get this process to work after leaving the emailing page, or how do I get it to go to the queue so it can then be sent out slowly?
Reply With Quote
  #274  
Old 27 Oct 2011, 00:06
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
The only way you could do this is to set it to 0 while using the "Send emails to users" - it should then zoom through them at 500 a time (but is just adding them to the queue, not sending them). Once done, change the value back to 6. I would add that I think 6 is an excessivly large value to use.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #275  
Old 27 Oct 2011, 00:47
arkueckelhan arkueckelhan is offline
 
Join Date: Sep 2011
Originally Posted by Paul M View Post
The only way you could do this is to set it to 0 while using the "Send emails to users" - it should then zoom through them at 500 a time (but is just adding them to the queue, not sending them). Once done, change the value back to 6. I would add that I think 6 is an excessivly large value to use.
Thanks for the assistance.

With such a huge memberbase as mine, would you suggest setting to 0, and then processing smaller batches every minute (rather than 10), so my server doesn't get bogged down?

And once all were added to the queue and changing the value back to 6, would that apply the 6 second delay to the processing of the queue?


Thanks Paul
Reply With Quote
  #276  
Old 27 Oct 2011, 12:20
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by arkueckelhan View Post
With such a huge memberbase as mine, would you suggest setting to 0, and then processing smaller batches every minute (rather than 10), so my server doesn't get bogged down?
That would seem a better choice IMO.

Originally Posted by arkueckelhan View Post
And once all were added to the queue and changing the value back to 6, would that apply the 6 second delay to the processing of the queue?
Yes, it should.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #277  
Old 27 Oct 2011, 14:25
arkueckelhan arkueckelhan is offline
 
Join Date: Sep 2011
Thanks Paul. I'll run it today and let everyone know if that was successful!
Reply With Quote
  #278  
Old 26 Jan 2012, 08:44
pspcrazy pspcrazy is offline
 
Join Date: Apr 2005
Hi Paul I've been using this for a while, but for some reason my daily digest (email sent once a day) doesn't queue up even though mass mailing do.
I have set it to mailqueue on, and the system works fine other then the daily digest emails which timeout or cause high server load.
Any ideas?

Thanks for the great mod.
Reply With Quote
  #279  
Old 26 Jan 2012, 12:18
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
It would depend on whether vb queues them by default, this wont process them unless the original code queues them in the first place.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #280  
Old 30 Jan 2012, 17:19
Selene Selene is offline
 
Join Date: Feb 2005
I am running latest 3.8.7 and have over 150K members.

Will this work on the current latest 3.8.7
Reply With Quote
  #281  
Old 30 Jan 2012, 17:37
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
It will work on any 3.8.x
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #282  
Old 02 Mar 2012, 20:24
rpgamersnet's Avatar
rpgamersnet rpgamersnet is offline
 
Join Date: Jul 2004
Just wanted to say thanks for a great mod Installed without a hitch and got it setup the way I needed. A must-have for any busy forum!
Reply With Quote
  #283  
Old 24 May 2012, 12:18
majidsr majidsr is offline
 
Join Date: Jun 2006
Paul, thanks very much for a welldone job

I installed it and it work 100%

Best Regards
Reply With Quote
  #284  
Old 18 Jul 2012, 05:11
christon26 christon26 is offline
 
Join Date: Dec 2008
Real name: Lissa
Please forgive me if this has been answered already, I did search lol

I know we can view the quickstats in the admin as to how many emails are in the queue, is there a place we can view the actual emails that are queued? Like a list?
__________________
-- I have just enough php knowledge to make me dangerous :P --
Reply With Quote
  #285  
Old 18 Jul 2012, 13:45
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
No, there isnt.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:30.

Layout Options | Width: Wide Color: