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 (Dr Pepper Addict) Paul M is offline
Developer Last Online: Apr 2015 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (22 votes - 4.73 average) Installs: 297
Released: 10 Jan 2009 Last Update: Never Downloads: 1670
Supported Uses Plugins Code Changes Additional Files Translations  

vBulletin 3.8 Version
Please remember to click Mark as Installed if you use this modification.
Support questions from members who have not marked this as installed will be considered low priority.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • 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
Cron Based E-Mail Sending Paul M vBulletin 3.7 Add-ons 151 03 Jun 2010 03:17
Cron Based E-Mail Sending Paul M vBulletin 3.6 Add-ons 164 27 Sep 2009 14:57
Cron based e-mail queuing and sending Paul M vBulletin 3.5 Add-ons 19 23 Oct 2006 00:57

Comments
  #2  
Old 10 Jan 2009, 16:45
Rene Kriest Rene Kriest is offline
 
Join Date: Jul 2008
Real name: King René II
Finally I need this addon since my forum is getting more and more members.
Reply With Quote
  #3  
Old 12 Jan 2009, 05:07
Derek Chai Derek Chai is offline
 
Join Date: Aug 2007
The cron isn't working for some reason. I had it set at every minute and now it's at the default every 10 and it isn't running according to the logs. I have about 200k mails in the quene.
__________________
http://derek.chai.bz
Reply With Quote
  #4  
Old 12 Jan 2009, 07:47
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul Marsden
Have you tried to run it manually ?
__________________

Cable Forum
Lead Developer, vBulletin.Org & vBulletin.Com
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
  #5  
Old 12 Jan 2009, 13:33
RedFoxy's Avatar
RedFoxy RedFoxy is offline
 
Join Date: Sep 2007
there is an admin/stats panel for that version?
Reply With Quote
  #6  
Old 12 Jan 2009, 22:36
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
Thank you , moved t oa new host and they have a 200 emails per hour limit
Reply With Quote
  #7  
Old 12 Jan 2009, 22:44
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
how do we set up the cron for this there is no intructions???
Reply With Quote
  #8  
Old 12 Jan 2009, 22:48
Derek Chai Derek Chai is offline
 
Join Date: Aug 2007
Wait, how does the quene work? I heard you need visitors? What do you mean by manually? If I click run now it says processing etc.
__________________
http://derek.chai.bz
Reply With Quote
  #9  
Old 12 Jan 2009, 22:48
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
nevermind i see it already sets it up for you.
Reply With Quote
  #10  
Old 12 Jan 2009, 22:51
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
When you send an email shouldnt it send the first batch right then, then the next bath at the tim you input. As of right now it doesnt send any when you first send it waits for the first que time to come around.

Anyway to change that?
Reply With Quote
  #11  
Old 13 Jan 2009, 10:22
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul Marsden
Originally Posted by Derek Chai View Post
Wait, how does the quene work? I heard you need visitors? What do you mean by manually? If I click run now it says processing etc.
Yes, the vb cron system requires that you actually have people visit your site.

Originally Posted by Battle_Ring View Post
When you send an email shouldnt it send the first batch right then, then the next bath at the tim you input. As of right now it doesnt send any when you first send it waits for the first que time to come around.
Its working correctly, thats what a cron job is, it runs every 10 mins.
__________________

Cable Forum
Lead Developer, vBulletin.Org & vBulletin.Com
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
  #12  
Old 13 Jan 2009, 15:08
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
i need mine to run every 1 hours as i can only email 200 times per hour
Reply With Quote
  #13  
Old 13 Jan 2009, 17:33
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul Marsden
No you dont. Please actually read the notes.
__________________

Cable Forum
Lead Developer, vBulletin.Org & vBulletin.Com
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
  #14  
Old 14 Jan 2009, 01:47
obmob obmob is offline
 
Join Date: Nov 2001
i have a 800 limit, but my webhost told me to use a 200 queue per hour, i'll try to set this up, awesome idea, must be part of vb 4.0
Reply With Quote
  #15  
Old 19 Jan 2009, 12:51
Mr-Mo3ath Mr-Mo3ath is offline
 
Join Date: May 2007
i have a proplem
i have to forums in my server the firs forum its sendeing aotumatic good
the secund forum when i doing send hes not send only manually and i update to 3.8 and the proplem its strel hes not send auto like the first form
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 10:59.

Layout Options | Width: Wide Color: