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

  #301  
Old 25 Mar 2013, 16:42
GoTTi GoTTi is offline
 
Join Date: Jun 2002
ya I set
Number of Emails to Send Per Batch to 80. so that was right
Reply With Quote
  #302  
Old 25 Mar 2013, 19:20
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by microbob View Post
I'd really like to use your mod here but I haven't heard back from you. Can you help me get this working and address my issue in post # 292 and #295?
From what I have read, you will need someone to spend time checking your actually installation, there is nothing obviously wrong in your posts.

Im afraid I simply do not have the time to do that atm.
__________________
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
  #303  
Old 27 Mar 2013, 18:29
GoTTi GoTTi is offline
 
Join Date: Jun 2002
paul it has taken days to send these emails....and there is still 1000 remaining. am I missing something?
Reply With Quote
  #304  
Old 29 Mar 2013, 02:51
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Maybe you dont have enough traffic to trigger the cron system every 10 minutes.

Other than that, no idea really, many things could affect it.
__________________
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
  #305  
Old 23 Dec 2014, 12:50
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Working in 3.8.8.

Last edited by SVTCobraLTD; 23 Dec 2014 at 13:25.
Reply With Quote
  #306  
Old 06 Apr 2015, 01:03
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
Step #2 Edit Question

When making the file revisions, I could not find the string: exec_mail_queue(); (within includes/functions.php)

Nevermind, as when I FTP'd my functions.php file the connection stalled and I did not get the entire file.(i.e. just 164kb out of 177kb) Once I discovered that and re-downloaded the file, I found the string I needed to edit then!

Last edited by adwade; 06 Apr 2015 at 02:43.
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 23:22.

Layout Options | Width: Wide Color: