Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Cron based e-mail queuing and sending Details »
Cron based e-mail queuing and sending
Mod Version: 1.06, 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.5.x Rating: (0 vote - 0 average) Installs: 35
Released: 05 Feb 2006 Last Update: Never Downloads: 73
Not Supported  

This modification is no longer available or supported.

Cron based e-mail queuing and sending.

At the moment, 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 in the case of the ACP Email users inteface, sends them straight away. As a result 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 I did this very simple modification to our forum to overcome the problem, and have since been asked about it a couple of times, so here it is.


This 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 e-mail queuing on 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 we do and set it to run every 15 minutes, and set the items to be processed to something larger (like 150).

Remember, 10 per minute = 600 per hour, 150 per 15 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 do 9999 at once (not 500 or whatever) as the mails will now go into the queue, not be sent direct.

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




History:

v1.06 : First Release.

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 03:17
Administrative and Maintenance Tools Cron Based E-Mail Sending Paul M Modification Graveyard 164 27 Sep 2009 14:57

Comments
  #2  
Old 05 Feb 2006, 02:49
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Nice idea, i will definantly install
Reply With Quote
  #3  
Old 05 Feb 2006, 06:06
username12 username12 is offline
 
Join Date: Jan 2006
Thank you! After the first time I tried to use the e-mail function, I decided not to do it again.
Reply With Quote
  #4  
Old 05 Feb 2006, 13:31
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Great!
/me installs
Reply With Quote
  #5  
Old 06 Feb 2006, 05:20
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Real name: Robert Basil
I'd LOVE to install this if it didn't require code changes.
Reply With Quote
  #6  
Old 06 Feb 2006, 12:43
lisquid lisquid is offline
 
Join Date: Apr 2005
Originally Posted by Pocketbike Planet
I'd LOVE to install this if it didn't require code changes.
PROBLEM: I sent one mass e-mail and it worked AMAZING the next day I tried to send another mass e-mail and it sent the same thing as the first one 0-0
Reply With Quote
  #7  
Old 06 Feb 2006, 12:52
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by Pocketbike Planet
I'd LOVE to install this if it didn't require code changes.
Two lines is harly a big deal !!

Not everything can be done by plugins.
__________________
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
  #8  
Old 06 Feb 2006, 12:54
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by lisquid
PROBLEM: I sent one mass e-mail and it worked AMAZING the next day I tried to send another mass e-mail and it sent the same thing as the first one 0-0
It can only send what's in the queue.
__________________
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
  #9  
Old 07 Feb 2006, 03:58
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Real name: Ahmed || Devo.
nice i adore this hacks my server love them
installed
__________________
Developer,,
"Know thing about everything ... Know everything about thing"

I was here as a coder, and i am there as a student
Reply With Quote
  #10  
Old 09 Feb 2006, 08:09
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by Developer
nice i adore this hacks my server love them
Glad you like 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
  #11  
Old 09 Feb 2006, 08:23
Brad Brad is offline
 
Join Date: Nov 2001
Thanks Paul, this is a perfect fit for a site I have planned that will be taking on a large number of users and sending out a lot of e-mail.
Reply With Quote
  #12  
Old 23 Feb 2006, 08:06
Akagi Akagi is offline
 
Join Date: Feb 2006
im wondering, for the Mailqueue, do i need to set "Yes,with locking", say if i've got a site with 20k members?
Reply With Quote
  #13  
Old 23 Feb 2006, 08:23
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
You shouldn't need locking with this as there is no potential for mail sends to overlap.
__________________
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
  #14  
Old 24 Feb 2006, 03:36
Akagi Akagi is offline
 
Join Date: Feb 2006
thanks for the reply. *installed*
Reply With Quote
  #15  
Old 22 Mar 2006, 23:05
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
I just love this, we sent a newsletter to 5,500 of our members on Monday and I just sat back and watched as it gently went out over 10 hours.
__________________
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 18:34.

Layout Options | Width: Wide Color: