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

  #181  
Old 31 Jan 2010, 13:43
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Quick question Paul, if you don't mind.

I have just upgraded from vb 3.6.12 to vb 3.8.4, I had both yours and antivirus's hacks installed on my 3.6.12 board. Now that I have upgraded please advise if these will be the correct steps to follow for your hack?

1. Uninstall antivurs hack
2. Install current version of your hack without uninstalling the old version?

Thanks.
Reply With Quote
  #182  
Old 31 Jan 2010, 14:14
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
I would uninstall both, then install this.
__________________
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
  #183  
Old 31 Jan 2010, 14:24
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
OK, thanks.
Reply With Quote
  #184  
Old 08 Feb 2010, 00:00
yoyoman yoyoman is offline
 
Join Date: Jan 2010
Lightbulb Cancelling e-mails

Originally Posted by Paul M View Post
TRUNCATE Mailqueue ;
Hi everybody!
Today I had a problem - accidentally sent the wrong e-mail to all users. Needed to cancel it.
I recommend 3 steps in such situations:
1. admincp->scheduled tasks->uncheck mailqueue
2. admincp->sql query->type in: TRUNCATE TABLE mailqueue;
3. admincp->scheduled tasks->switch mailqueue back on

See you!
Reply With Quote
  #185  
Old 10 Feb 2010, 08:31
jet rex jet rex is offline
 
Join Date: Oct 2009
Emails - is a biggest problem in my server.
Thanks !
Reply With Quote
  #186  
Old 13 Feb 2010, 06:39
Log on Log on is offline
 
Join Date: Aug 2009
I couldn't adjusete it to run every min... I don't know whats going on ?

would you tell me please how I can adjuste it
Reply With Quote
  #187  
Old 13 Feb 2010, 12:49
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Why do you want to run it every minute ?
__________________
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
  #188  
Old 14 Feb 2010, 06:23
Log on Log on is offline
 
Join Date: Aug 2009
Originally Posted by Paul M View Post
Why do you want to run it every minute ?
coz I want to send from the Q every min 14 messages...

coz my hosting ruls is

1- only 35 recipients per message.
2- only 750 messages per hour.

how I can adjuset it ?!

Please help me


Reagrds
Reply With Quote
  #189  
Old 14 Feb 2010, 16:12
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Edit the cron to run every minute (* in all the time fields).
__________________
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
  #190  
Old 14 Feb 2010, 23:50
krimesis krimesis is offline
 
Join Date: Aug 2007
Perhaps I misread the whole post but need to send emails to all users?
I tried to load everything and the only difference I noticed was on the email options:

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

Reply With Quote
  #191  
Old 15 Feb 2010, 00:02
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Im a bit confused, what is your question exactly ?
__________________
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
  #192  
Old 15 Feb 2010, 00:09
krimesis krimesis is offline
 
Join Date: Aug 2007
I thought to solve the problem I have in sending mass emails to users, because the new server takes a long to send 20,000 emails while in the old party in 45 minutes.
Reply With Quote
  #193  
Old 15 Feb 2010, 02:33
Aeolian Aeolian is offline
 
Join Date: Apr 2004
possible to make it to work with vb4?
cheers!
Reply With Quote
  #194  
Old 15 Feb 2010, 05:50
final kaoss final kaoss is offline
 
Join Date: Apr 2006
It seems it isn't handling the daily & weekly digest or is it?

1897 Weekly Digest 00:47, 15th Feb 2010 Weekly Digest Sent
1896 Daily Digest 00:45, 15th Feb 2010 Daily Digest Sent
1895 Process Mail Queue for vBulletin 3.7 00:23, 15th Feb 2010 Processed Mail Queue
Reply With Quote
  #195  
Old 15 Feb 2010, 10:34
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by krimesis View Post
I thought to solve the problem I have in sending mass emails to users, because the new server takes a long to send 20,000 emails while in the old party in 45 minutes.
Sorry but you still dont seem to be actually asking a question.

Originally Posted by Aeolian View Post
possible to make it to work with vb4?
cheers!
If you use the vb4 version, then yes.

Originally Posted by extreme-gaming View Post
It seems it isn't handling the daily & weekly digest or is it?

1897 Weekly Digest 00:47, 15th Feb 2010 Weekly Digest Sent
1896 Daily Digest 00:45, 15th Feb 2010 Daily Digest Sent
1895 Process Mail Queue for vBulletin 3.7 00:23, 15th Feb 2010 Processed Mail Queue
What do you mean by "not handling" ? - this has no direct link with Digest cron jobs.
__________________
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 19:29.

Layout Options | Width: Wide Color: