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

  #196  
Old 15 Feb 2010, 11:53
krimesis krimesis is offline
 
Join Date: Aug 2007
Paul
In practice I do not solve the problem I have in my server slow email delivery?
Then the general usefulness of the product is something that you may have misunderstood.
Thanks.
Reply With Quote
  #197  
Old 15 Feb 2010, 12:49
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
This product is not about the speed your server delivers e-mail, and in fact, by its very nature, it will slow down the rate at which e-mail is sent, not speed it up. I have no idea what the second part of your message is supposed to mean, but I do not misunderstand my own mods.
__________________
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
  #198  
Old 15 Feb 2010, 12:53
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Can you add support for the Digest jobs then?
Reply With Quote
  #199  
Old 15 Feb 2010, 13:23
krimesis krimesis is offline
 
Join Date: Aug 2007
Originally Posted by Paul M View Post
This product is not about the speed your server delivers e-mail, and in fact, by its very nature, it will slow down the rate at which e-mail is sent, not speed it up. I have no idea what the second part of your message is supposed to mean, but I do not misunderstand my own mods.
Ok
Thanks
Reply With Quote
  #200  
Old 15 Feb 2010, 14:44
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by extreme-gaming View Post
Can you add support for the Digest jobs then?
Please explain what you mean by 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
  #201  
Old 15 Feb 2010, 17:31
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Well in your last post you said this. And this makes it sound like the Daily & Weekly digest emails are not being sent out by the mod.

Originally Posted by Paul M View Post

What do you mean by "not handling" ? - this has no direct link with Digest cron jobs.
Reply With Quote
  #202  
Old 15 Feb 2010, 18:10
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
As the description says, this handles anything in the vb mail queue.

Do the digest jobs put e-mails in the vb queue ? If they do then this will process them. (I have no idea without digging into their code, but Id be very surprised if they didnt).
__________________
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
  #203  
Old 16 Feb 2010, 11:08
Log on Log on is offline
 
Join Date: Aug 2009
Originally Posted by Paul M View Post
Edit the cron to run every minute (* in all the time fields).

I did it .. but still dosen't work every min ?!!!
Reply With Quote
  #204  
Old 16 Feb 2010, 17:12
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
It does if youve set it correctly (and you have enough forum activity of course).
__________________
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
  #205  
Old 05 Mar 2010, 22:43
tafreeh's Avatar
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Real name: DON
i made, the file changes instructed in the downloaded file...

and when i click send email i get this


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

on white page...


However i did upload the xml file, but couldnt find any option in vbulletin option at Admincp

I got more than 36,000 users, and i have to send an important email to everyone.. so i think i need this mod.... in order to prevent getting blacklisted.

Thanks
__________________
Vb Forum
Reply With Quote
  #206  
Old 06 Mar 2010, 00:21
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by tafreeh View Post
i made, the file changes instructed in the downloaded file...

and when i click send email i get this


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

on white page...
Then you made an error in the edit.

Originally Posted by tafreeh View Post
However i did upload the xml file, but couldnt find any option in vbulletin option at Admincp
Where are you looking ?
__________________
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
  #207  
Old 07 Mar 2010, 22:39
tafreeh's Avatar
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Real name: DON
yea there was a line missinge from email.php... now its all good.

Thanks allot
__________________
Vb Forum
Reply With Quote
  #208  
Old 12 Mar 2010, 18:18
final kaoss final kaoss is offline
 
Join Date: Apr 2006
I forced the cronjob to send the mail so no, theres no mail in the queue

and /home/vgchat/mail 45 has always been at 45 at hasn't gone up by an increment since test.

K made a test account and

SMTP: mail.vgchat.info:26
SMTP Username: test@vgchat.info

Help
Results
No errors were returned while attempting to send the email. Check avalanch07@gmail.com shortly to confirm you've received the email. If you don't receive the email, try sending the test to a different address. If that fails, check your mail server's configuration.
no mail received though...

EDIT solved.

Last edited by final kaoss; 12 Mar 2010 at 19:25.
Reply With Quote
  #209  
Old 15 Mar 2010, 23:09
vitrag24's Avatar
vitrag24 vitrag24 is offline
 
Join Date: Nov 2006
update for vb 4.0?
Thx.
Reply With Quote
  #210  
Old 16 Mar 2010, 14:13
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Just look in my profile.
__________________
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 17:29.

Layout Options | Width: Wide Color: