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.7.003, 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.7.x Rating: (11 votes - 5.00 average) Installs: 160
Released: 08 Jan 2008 Last Update: 17 Jun 2008 Downloads: 1284
Not Supported Translations  

This modification is no longer available or supported.

In default vBulletin 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 just simply tries to send them straight away (This is the case when you use the Administrators email users inteface).

As a result of this 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 of these problems, this very simple modification was born.

This modification 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 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 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 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 (v3.7.002 onwards).

Version 3.7.003 has the option to add a small delay before each e-mail is sent (between 1 and 9 seconds). Use this option carefully.



History:

v3.7.001 : First Release for vB 3.7
v3.7.002 : Added mail queue size display code.
v3.7.003 : Added option for a delay between the sending of each e-mail.

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 164 27 Sep 2009 15:57
Cron based e-mail queuing and sending Paul M Modification Graveyard 19 23 Oct 2006 01:57

Comments
  #2  
Old 08 Jan 2008, 21:08
joopss's Avatar
joopss joopss is offline
 
Join Date: Sep 2006
Location: Turkey / AnKara
Real name: JOOPSS
Tenks Paul M.........
__________________
www.joopss.org www.dostlukpaylas.com
Reply With Quote
  #3  
Old 08 Jan 2008, 22:56
Howell Howell is offline
 
Join Date: Apr 2007
Excellent! Thanks Paul.

I had to change the compatability of antivirus's little addon to get to install but it's working fine after that.
Reply With Quote
  #4  
Old 09 Jan 2008, 15:59
yahoooh yahoooh is offline
 
Join Date: Oct 2002
thanks
Reply With Quote
  #5  
Old 11 Jan 2008, 05:23
obmob obmob is offline
 
Join Date: Nov 2001
This can be a huge addon, thanks will test it! :3
Reply With Quote
  #6  
Old 13 Jan 2008, 14:15
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Thanks Paul.
Reply With Quote
  #7  
Old 23 Jan 2008, 20:42
teenhut teenhut is offline
 
Join Date: Sep 2006
Thanks a ton. I tried to send email through VB system and my VPS went way damn slow and crashed. I had to abort email sending. I just installed this now. Things will be much easier now
Reply With Quote
  #8  
Old 03 Feb 2008, 05:06
yawsh yawsh is offline
 
Join Date: Oct 2007
I think this should go as vBulletin built-in as it adds a huge value. Thanks pals.
Reply With Quote
  #9  
Old 03 Feb 2008, 12:57
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
You should probably suggest that on vb.com. They're not likely to see any comments over here.
__________________
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 03 Feb 2008, 18:47
hdrmut hdrmut is offline
 
Join Date: Aug 2005
Very important modification ..
isntalled Done

- this is modification send 1 E-mail in evry 10 but i want chang this numper to send 100 E-mail in evry 10 minutes .. so how i can change ?
Reply With Quote
  #11  
Old 03 Feb 2008, 20:18
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Read the first post.
__________________
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
  #12  
Old 03 Feb 2008, 23:03
hdrmut hdrmut is offline
 
Join Date: Aug 2005
Thank you
Reply With Quote
  #13  
Old 04 Feb 2008, 02:02
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Thank you very much
Reply With Quote
  #14  
Old 10 Feb 2008, 22:30
kylek kylek is offline
 
Join Date: Oct 2003
Real name: Kyle
"Queue Size
Antivirus has posted a nifty little addon that displays the current size of the mail queue here."

This doesn't seem to work with 3.7.0 Beta 4. When you import the product you get this:

The following dependencies were not met:
  1. The product paulm_20060709 must be installed before this product may be installed. (Compatible starting with 1)
Reply With Quote
  #15  
Old 10 Feb 2008, 23:04
Howell Howell is offline
 
Join Date: Apr 2007
Originally Posted by kylek View Post
"Queue Size
Antivirus has posted a nifty little addon that displays the current size of the mail queue here."

This doesn't seem to work with 3.7.0 Beta 4. When you import the product you get this:

The following dependencies were not met:
  1. The product paulm_20060709 must be installed before this product may be installed. (Compatible starting with 1)
Open: product-anti_mailqueue_stats_acp

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats what I did to get it working.
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:14.

Layout Options | Width: Wide Color: