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: 4.1.7.0, 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: 4.1.x Rating: (24 votes - 4.96 average) Installs: 190
Released: 30 Dec 2009 Last Update: 24 May 2012 Downloads: 1040
Not Supported Uses Plugins Code Changes Additional Files Translations  


--------------------------------------------------------------------------------
This modification has been withdrawn.
vBulletin 4.0.x and 4.1.x are no longer supported.

The feature is already built into the core vBulletin 4.2.x code.
--------------------------------------------------------------------------------


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 helps in three ways ;

1. The processing of the mail queue is set-up as a vbulletin cron item.

2. You can add a small delay before each e-mail is sent (0,1,2 or 5 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 use e-mail queuing (ACP Options - Use Mailqueue System = Yes) and also the 'Number of Emails to Send Per Batch' needs to be a realistic value (see below). The installation process will attempt to set these options for you. This modification also requires two file edits to work correctly.

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 80, which is the default).

Remember, 10 e-mails per minute = 600 per hour while 80 e-mails every 10 minutes is 480 per hour. The numbers you set really depend on how quick you want large queues processed, and how much your mail server can handle in one go. The default settings are fine for most people.

Once working, when using the ACP mail users inteface, remember you can set it to process 9999 at once (not 500) as the mails will now go into the queue, not be sent directly.

Note: This modification will only affect queued e-mails such as subscription e-mails. It will not affect registration e-mails as they always bypass queuing.

This modification also displays the size of the e-mail queue in the ACP homepage, based on code supplied by Antivirus.

To install, download and uzip the files, then follow the instructions in the text file.


History:

v4.0.1 : 30-Dec-2009 : Initial release for vb 4.0.0 Gold.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

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 305 06 Apr 2015 01:03
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

  #61  
Old 11 May 2010, 20:17
ZuFett ZuFett is offline
 
Join Date: Jun 2007
I dont know exatly what i must do....
i want to write a newsletter. i write an e-mail, set the large to 9999 and now it list user by user after 5 seconds (under option I take 5 seconds). But i cant wait 5 seconds on each user, i have over 10.000 στ

What do i wrong?
Reply With Quote
  #62  
Old 11 May 2010, 21:48
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Why have you set it to 5 seconds ?
__________________
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
  #63  
Old 12 May 2010, 14:15
ZuFett ZuFett is offline
 
Join Date: Jun 2007
My Server can sent 1000 e-mails per hour. i have 13.000 Users :/
Reply With Quote
  #64  
Old 13 May 2010, 20:28
ToNetU ToNetU is offline
 
Join Date: Mar 2003
hello Paul,

just to make it clear to me i did this:

1- edited email.php & function.php
2- upload the plugin
3- "E-Mail Send Delay" set to [1 second]
4- Number of Emails to Send Per Batch = 80
5- i have more than +12,000 users.
6- i have no idea how many email i can send per hour.
7- i tried to send email to my registeration members WITHOUT this mod, and i got 505 error after it sent to the first 1,500 member.

am i good to go with this settings? or i have to change something?

thanks in advance for your help
Reply With Quote
  #65  
Old 13 May 2010, 22:45
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
You do not need to set the e-mail delay to 1 second - leave it a zero. Its VERY rare that anyone should ever have to changed that setting.
__________________
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
  #66  
Old 13 May 2010, 23:30
ToNetU ToNetU is offline
 
Join Date: Mar 2003
Originally Posted by Paul M View Post
You do not need to set the e-mail delay to 1 second - leave it a zero. Its VERY rare that anyone should ever have to changed that setting.
so once i change it to zero, am good to go?

EDIT: i will give this a try and i will let you know.

thanks
Reply With Quote
  #67  
Old 14 May 2010, 08:45
ToNetU ToNetU is offline
 
Join Date: Mar 2003
i gave this a try, and this is what happened:
1- ACP > Users > Send Email to Users.
2- i put 99999 to process at once.
3- i chose to send for only registeration members.
4- it was sending normaly email for each user.
5- Include users that have declined admin emails? > YES
6- wrote title & message to send.
7- clicked submit to send the emails.
8- process was good so far until it stopped on 2,639
9- i was waiting for it to move but after 5 minutes i gave up.
10- when i went to ACP again i found this > vBulletin E-Mail Queue = 3,*** something.
11- the number of the queue was decreasing til > There are no e-mails queued at the moment.

fortunatuly i passed the 1,500 limit and the some of my members recieved the email, unfortunately it didn't send for all of my members. [i gave this a try yesterday] so til now they didn't recieve anything.

thanks Paul
Reply With Quote
  #68  
Old 04 Jun 2010, 21:03
joe1989 joe1989 is offline
 
Join Date: Apr 2008
One minor bug... Something with the file edits (not the upload, but while editing email.php and functions.php) resulted in my ACP not properly displaying the top bar (the one that says the current version and the most up-to-date version). I ended up re-uploading the original files from vB and it fixed it, so it's confirmed that it was a result of the file edits. Any thoughts?
Reply With Quote
  #69  
Old 05 Jun 2010, 12:53
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
You didnt do the edits corectly would be my thought. There is no way they can have the effect you describe.
__________________
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
  #70  
Old 05 Jun 2010, 16:10
ToNetU ToNetU is offline
 
Join Date: Mar 2003
Originally Posted by Paul M View Post
You didnt do the edits corectly would be my thought. There is no way they can have the effect you describe.
am still waiting an answer from you Paul, i really need to send an email for all my member and as i said in the above post, it didn't send to all my members? any thoughs?
Reply With Quote
  #71  
Old 06 Jun 2010, 15:17
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by ToNetU View Post
am still waiting an answer from you Paul
An answer to what exactly ? The edits cannot have the effect mentioned, there is no other answer.
__________________
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
  #72  
Old 13 Jun 2010, 08:43
dtommy79 dtommy79 is offline
 
Join Date: Jul 2007
For some reason it doesn't send out the mails.

They stay in the E-Mail Queue.

Can anyone confirm that this mod does work with 4.0.3?
Reply With Quote
  #73  
Old 13 Jun 2010, 22:02
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Yes. It works on 4.0.3, and any other 4.0.x version.
__________________
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
  #74  
Old 13 Jun 2010, 22:19
dtommy79 dtommy79 is offline
 
Join Date: Jul 2007
Strange, because it puts the emails in the Queue but it doesn't send them.

It works if I run the task manually.
Reply With Quote
  #75  
Old 13 Jun 2010, 23:34
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Then you have an issue with your cron jobs running.
__________________
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 22:11.

Layout Options | Width: Wide Color: