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: 4.1.7.0, 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: 4.1.x Rating: (24 votes - 4.96 average) Installs: 190
Released: 30 Dec 2009 Last Update: 24 May 2012 Downloads: 1040
Not Supported Uses Plugins Code Changes Additional Files Translations  


--------------------------------------------------------------------------------
This modification has been withdrawn.
vBulletin 4.0.x and 4.1.x are no longer supported.

The feature is already built into the core vBulletin 4.2.x code.
--------------------------------------------------------------------------------


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 helps in three ways ;

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

2. You can add a small delay before each e-mail is sent (0,1,2 or 5 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 use e-mail queuing (ACP Options - Use Mailqueue System = Yes) and also the 'Number of Emails to Send Per Batch' needs to be a realistic value (see below). The installation process will attempt to set these options for you. This modification also requires two file edits to work correctly.

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 80, which is the default).

Remember, 10 e-mails per minute = 600 per hour while 80 e-mails every 10 minutes is 480 per hour. The numbers you set really depend on how quick you want large queues processed, and how much your mail server can handle in one go. The default settings are fine for most people.

Once working, when using the ACP mail users inteface, remember you can set it to process 9999 at once (not 500) as the mails will now go into the queue, not be sent directly.

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

This modification also displays the size of the e-mail queue in the ACP homepage, based on code supplied by Antivirus.

To install, download and uzip the files, then follow the instructions in the text file.


History:

v4.0.1 : 30-Dec-2009 : Initial release for vb 4.0.0 Gold.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

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 305 06 Apr 2015 00:03
Administrative and Maintenance Tools Cron Based E-Mail Sending Paul M Modification Graveyard 151 03 Jun 2010 03:17
Administrative and Maintenance Tools Cron Based E-Mail Sending Paul M Modification Graveyard 164 27 Sep 2009 14:57
Cron based e-mail queuing and sending Paul M Modification Graveyard 19 23 Oct 2006 00:57

Comments
  #2  
Old 30 Dec 2009, 22:02
yahooooh yahooooh is offline
 
Join Date: Dec 2009
thank you
__________________
بيع شراء
الوطنية
اخبار عصام مطير البلوي
Reply With Quote
  #3  
Old 30 Dec 2009, 22:31
Nadeemjp Nadeemjp is offline
 
Join Date: Aug 2008
Real name: Nadeem Qadir
thanx paul, have had this trouble with my host providers and my limit for one hour is 500 emails. i didnt knnow what to do, but this will help.
thanx
__________________
Family Bunker
Reply With Quote
  #4  
Old 30 Dec 2009, 22:58
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
installed

thanxx
________
Uggs

Last edited by Dr.osamA; 04 Apr 2011 at 00:41.
Reply With Quote
  #5  
Old 30 Dec 2009, 23:34
AliMadkour's Avatar
AliMadkour AliMadkour is offline
 
Join Date: Dec 2004
Real name: Ali
very useful
thanks : )
__________________
Ali Madkour
Reply With Quote
  #6  
Old 31 Dec 2009, 00:41
ShadowStalker ShadowStalker is offline
 
Join Date: May 2009
Might want to fix your title
Reply With Quote
  #7  
Old 31 Dec 2009, 02:37
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
yeah I could use some Cron ased e-mail sending

Back when I did use this, I noticed it helped with the server load, however since I get around 1000 registrations a day and have almost half a million members it was just delaying the sending of the critical emails too much.
Reply With Quote
  #8  
Old 31 Dec 2009, 12:15
supamodz supamodz is offline
 
Join Date: Jul 2009
hey paul i want to use this mod so bad but when i input your code in functions.php i get a syntax error can you please show me how to place the code in the functions.php do i leave out the trailing slashes im confused thank you in advance.
Reply With Quote
  #9  
Old 31 Dec 2009, 12:18
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by hornstar1337 View Post
yeah I could use some Cron ased e-mail sending
Ooops, fixed.

Originally Posted by hornstar1337 View Post
however since I get around 1000 registrations a day and have almost half a million members it was just delaying the sending of the critical emails too much.
This has no effect on registration e-mails etc as they bypass the queue system in vb anyway.
__________________
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
  #10  
Old 31 Dec 2009, 14:00
saqibnpt saqibnpt is offline
 
Join Date: Sep 2008
Location: Nur Pur Thal PAKISTAN
Real name: Rana Saqib Yameen
thanks
Reply With Quote
  #11  
Old 31 Dec 2009, 15:31
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Glad this one was updated!
__________________
Xbox 360 Mods
Reply With Quote
  #12  
Old 31 Dec 2009, 18:10
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
awesome
I have vb3.7 but expected to fing the suitable version in related mods
and that what happened
thanks a lot
__________________
Egypt News website, latest Egyptian news updated instantly.
Reply With Quote
  #13  
Old 01 Jan 2010, 01:54
Griffoneur Griffoneur is offline
 
Join Date: Nov 2007
WHY isn't this a part of the vBulletin package? I can't run my site without this mod.
Really appreciate your mod Paul.
Reply With Quote
  #14  
Old 01 Jan 2010, 13:40
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Real name: mastdunya.com
Installed and i couldnt find in admin cp
ACP Options - Use Mailqueue System
where its is?
Reply With Quote
  #15  
Old 01 Jan 2010, 13:53
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
ACP > Options > Email Options.
__________________
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 16:17.

Layout Options | Width: Wide Color: