View Full Version : Administrative and Maintenance Tools - Cron based e-mail sending
Paul M
12-29-2009, 10:00 PM
--------------------------------------------------------------------------------
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 (https://vborg.vbsupport.ru/member.php?u=64660).
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.
yahooooh
12-30-2009, 09:02 PM
thank you
Nadeemjp
12-30-2009, 09:31 PM
thanx paul, have had this trouble with my host providers and my limit for one hour is 500 emails. i didnt knnow what to do, but this will help.
thanx
Dr.osamA
12-30-2009, 09:58 PM
installed
thanxx
________
Uggs (http://uggstoreshop.com/)
AliMadkour
12-30-2009, 10:34 PM
very useful
thanks : )
ShadowStalker
12-30-2009, 11:41 PM
Might want to fix your title
Hornstar
12-31-2009, 01:37 AM
yeah I could use some Cron ased e-mail sending :D
Back when I did use this, I noticed it helped with the server load, however since I get around 1000 registrations a day and have almost half a million members it was just delaying the sending of the critical emails too much.
supamodz
12-31-2009, 11:15 AM
hey paul i want to use this mod so bad but when i input your code in functions.php i get a syntax error can you please show me how to place the code in the functions.php do i leave out the trailing slashes im confused thank you in advance.
Paul M
12-31-2009, 11:18 AM
yeah I could use some Cron ased e-mail sending :D
Ooops, fixed.
however since I get around 1000 registrations a day and have almost half a million members it was just delaying the sending of the critical emails too much.
This has no effect on registration e-mails etc as they bypass the queue system in vb anyway.
saqibnpt
12-31-2009, 01:00 PM
thanks
AzzidReign
12-31-2009, 02:31 PM
Glad this one was updated!
abdobasha2004
12-31-2009, 05:10 PM
awesome
I have vb3.7 but expected to fing the suitable version in related mods
and that what happened
thanks a lot
Griffoneur
01-01-2010, 12:54 AM
WHY isn't this a part of the vBulletin package? I can't run my site without this mod.
Really appreciate your mod Paul.
nomoreturn
01-01-2010, 12:40 PM
Installed and i couldnt find in admin cp
ACP Options - Use Mailqueue System
where its is?
Paul M
01-01-2010, 12:53 PM
ACP > Options > Email Options.
Sworm
01-02-2010, 05:40 PM
This is the most utility mod in this forum :) All the server not dedicated will not send more of 400 email in 1 hour!
GREAT job Paul M :)
supamodz
01-02-2010, 05:52 PM
Hi guys can anybody help me get this mod running im having trouble placing the code in functions.php i keep getting errors and everybody seems to have no problem installing i just want to know what i am doing wrong please.
Paul M
01-02-2010, 06:54 PM
Its impossible to help you unless you give some clues, like what errors you get, and what text editor you are using.
supamodz
01-02-2010, 08:25 PM
Its impossible to help you unless you give some clues, like what errors you get, and what text editor you are using.
hi paul im using dreamweaver i am attaching some screenshots to give you some idea of what is going on image 002 is before i input the code 001 is code installed and 003 is after i upload it to my server am i even putting this code in the right place ? thanx.
Paul M
01-03-2010, 01:43 AM
You are not editing the correct place.
The instructions say ;
exec_mail_queue();
You are editing ;
function exec_mail_queue()
Thats why you are failing. :)
supamodz
01-03-2010, 02:45 AM
You are not editing the correct place.
The instructions say ;
You are editing ;
Thats why you are failing. :)
Thanks paul finally installed i had a feeling i was missing something:D
EricPSF
01-09-2010, 09:55 PM
Hi Paul,
I'm a little bit confused over the setting, please kindly advice.
My host only allows max 100 emails per hour. So, how do I go about setting it safely?
(1) Is setting "Number of Emails to Send Per Batch" to 100 is correct? Or shall I remain it as 80?
(2) Do I have to set the "E-Mail Send Delay"?
Thank you!
Paul M
01-09-2010, 11:15 PM
As the main post says, by default, it runs every 10 mins. So setting the batch size to 100 would send 6 x 100 per hour (600). For 100 per hour divide 100 by 6 (=16). To be safe, set it to 15. Do not set the send delay unless you have a specific reason to do so.
EricPSF
01-18-2010, 03:02 AM
Hi Paul,
Pardon me, may I know where is the setting for:
"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."
Thank you.
Paul M
01-18-2010, 10:12 AM
Its part of the page when you e-mail members from the ACP, you do not need to worry about it unless you use that facility, in which case you will clearly see it.
EricPSF
01-18-2010, 12:17 PM
Hi Paul,
I have received hundreds of bounced back email with the following error msg:
"This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
xxxx@gmail.com
Domain mysitename.com has exceeded the max emails per hour (500) allowed. Message discarded."
I was thinking to increase to 9999 for the default 500.
Paul M
01-18-2010, 04:29 PM
This is unrelated to the setting you asked about.
Domain mysitename.com has exceeded the max emails per hour (500) allowed. Message discarded.
Either you have your batch setting to high, or you havent installed this correctly.
EricPSF
01-19-2010, 12:48 AM
This is unrelated to the setting you asked about.
Either you have your batch setting to high, or you havent installed this correctly.
Hi Paul,
My "Number of Emails to Send Per Batch" is only 15.
Nvm, I will reinstall the mod once again and see how it goes.
Thank you.
cloferba
01-21-2010, 12:49 AM
i need to cancel sended emails...because i wrote a gmail address to send mails, and it is blocked has spam....
i´ve disable this cron..and then re enable, but it still sending emails
how can i stop it?
Paul M
01-21-2010, 08:39 AM
Delete the e-mails from the mailqueue table.
cloferba
01-21-2010, 11:09 AM
all values from mailqueue table?
i only see
mailqueueid
dateline
toemail
fromemail
subject
message
header
EricPSF
01-22-2010, 05:42 AM
Hi Paul,
I encountered 1 problem, need yr advice.
I send email (to three of my own accounts) using the ACP; it prompted sent..but I didn't received any of the emails...?
I can see from the ACP front page "The current e-mail queue size is 7" and my Number of Emails to Send Per Batch is only 15.
Paul M
01-22-2010, 09:50 AM
What is your question ?
cloferba
01-22-2010, 10:29 AM
paul help me...it still sending emails :S
Paul M
01-22-2010, 10:57 AM
Help you do what ? Its supposed to send e-mails.
cloferba
01-22-2010, 09:31 PM
well..i will tell you
i wanted to send newsletters...so i did it, but using a @gmail.com address. So, it is consider has spam (i have all my gmail account full of mails saying
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
dbmaster@example.com
SMTP error from remote mail server after MAIL FROM:<xxx@gmail.com>:
host gateway.websitewelcome.com [64.5.52.8]: 553 5.5.4 I was unable to send this e-mail because the domain ( gmail.com ) has been black listed due to spam or forgery.
so, im not going to wait all days until it finish to send emails consider spam, so i want to cancel the sending...
Paul M
01-22-2010, 11:12 PM
Then you need to delete the records form the mailqueue table. Im sure I told you this once. :)
EricPSF
01-23-2010, 05:54 AM
What is your question ?
Hi Paul,
My 7 trial emails were delayed sending for abt. 3 hrs. Is it true that this mod needs heavy traffic in order to perform better? Any ways of triggering it to send the emails at a faster speed?
Btw, where can I find the mailqueue table that you have mentioned in yr last post?
cloferba
01-23-2010, 01:18 PM
Then you need to delete the records form the mailqueue table. Im sure I told you this once. :)
ok, but then am i going to have problems to send emails if i delete all from mailqueue table?
or that table is created every time a email is set to be sended?
Paul M
01-23-2010, 04:03 PM
Hi Paul,
My 7 trial emails were delayed sending for abt. 3 hrs. Is it true that this mod needs heavy traffic in order to perform better? Any ways of triggering it to send the emails at a faster speed?
Btw, where can I find the mailqueue table that you have mentioned in yr last post?
It uses the vbulletin cron system, which does require (proper) visitors to your site to work. If you have little or no traffic at all then its not going to trigger, or take a while.
The mailqueue table is just another table in your vb database.
ok, but then am i going to have problems to send emails if i delete all from mailqueue table?
or that table is created every time a email is set to be sended?
You seem to be confusing deleting records with deleting the table. You need to delete the records from the table, not the table. If you dont understand this then you need to seek help from someone who does.
cloferba
01-27-2010, 12:27 PM
"all from mailqueue table" i mean delete all data on this table, but not delete table
cloferba
03-10-2010, 03:34 AM
cant solve my problem :(
cloferba
03-12-2010, 09:46 PM
i dont know why..on 4.0.2, i send emails through admincp, but on the adminpanel it says "There are no e-mails queued at the moment."
also, mails arent sended...nobody has emails on his inbox or spam folder
Manoel J?nior
03-13-2010, 02:27 AM
Installed, thanks
arena
03-24-2010, 10:32 AM
thank you Installed
demojames
04-05-2010, 04:05 PM
I couldn't survive without this mod. Thanks for the great work Paul!
Also you may want to change your text in the details, Remember, 10 e-mails per minute = 600 per hour
Should be 100 e-mails per minute = 600 per hour.
Thanks again!
Paul M
04-05-2010, 09:48 PM
Also you may want to change your text in the details, Remember, 10 e-mails per minute = 600 per hour
Should be 100 e-mails per minute = 600 per hour.
Um, no.
There are only 60 minutes in an hour, so 10 per minute x 60 mins = 600 per hour.
demojames
04-06-2010, 03:15 AM
Your right! I had to re-read, I was reading it too fast and I was reading the 80 as per minute, no every 10 minutes.
360themes
04-13-2010, 12:14 AM
it is not working with 4.0.2 anymore
Paul M
04-13-2010, 01:20 PM
it is not working with 4.0.2 anymore
Then something has changed on your site - code cannot just stop working :)
mmikel_atef
04-15-2010, 07:46 AM
thanks so much
carrlos
04-18-2010, 08:22 PM
4.0.3?
Paul M
04-19-2010, 11:12 AM
What about 4.0.3 ?
halkum
04-25-2010, 04:28 AM
Hello Paul,
Error: Nevermind my error. Downloads weren't completeing so the zip was mis-finished.
Mod nominated :)
Love it.
Thanks :D
cloferba
04-28-2010, 01:13 PM
Paul, vb_mailqueue on my forum has a size of 6.44 GB!!
why so big? is any way to clean it and decrease the size?
thank you very much =)
Paul M
04-28-2010, 06:25 PM
I have no idea why your table is so big.
final kaoss
05-04-2010, 11:27 PM
Thanks, this is a must have mod for any vbulletin 4.x board
doubleclick
05-08-2010, 07:15 AM
A couple of questions.
Do you know if this mod will run on 3.7?
This will use the smtp mail if that is what I am currently using?
Thanks
Paul M
05-08-2010, 11:26 AM
For vb 3.7, use the 3.7 release of the mod. :)
trackpads
05-10-2010, 04:03 AM
installed, thanks!
ZuFett
05-11-2010, 06:17 PM
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?
Paul M
05-11-2010, 07:48 PM
Why have you set it to 5 seconds ?
ZuFett
05-12-2010, 12:15 PM
My Server can sent 1000 e-mails per hour. i have 13.000 Users :/
ToNetU
05-13-2010, 06:28 PM
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
Paul M
05-13-2010, 08:45 PM
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.
ToNetU
05-13-2010, 09:30 PM
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
ToNetU
05-14-2010, 06:45 AM
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
joe1989
06-04-2010, 07:03 PM
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?
Paul M
06-05-2010, 10:53 AM
You didnt do the edits corectly would be my thought. There is no way they can have the effect you describe.
ToNetU
06-05-2010, 02:10 PM
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?
Paul M
06-06-2010, 01:17 PM
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.
dtommy79
06-13-2010, 06:43 AM
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?
Paul M
06-13-2010, 08:02 PM
Yes. It works on 4.0.3, and any other 4.0.x version.
dtommy79
06-13-2010, 08:19 PM
Strange, because it puts the emails in the Queue but it doesn't send them.
It works if I run the task manually.
Paul M
06-13-2010, 09:34 PM
Then you have an issue with your cron jobs running.
hayatt2000
07-04-2010, 10:42 PM
Thanks :)
Kaosvf
07-23-2010, 07:31 PM
or you can do what this modification does by default and set it to run every 10 minutes
How can I do it?
Alecsmith
08-04-2010, 04:02 PM
Thanks installed :)
Dragonsys
09-27-2010, 08:22 PM
This doe snot seem to work in 4.0.7. I turned off the task to Process the Email Queue, and emails are being sent out in less than 1 minute.
It seems like 4.0.7 is ignoring this product.
Paul M
09-27-2010, 10:09 PM
Some e-mails (like registration e-mails) are never queued.
However, the more likely answer is you didnt re-do the file edits after you upgraded to 4.0.7.
m3_fs
09-29-2010, 05:29 AM
Thanks Paul, I will be trying this out tomorrow for sure. Cheers!
edit: this is used with the built in vb email manager right?
m3_fs
09-30-2010, 04:28 AM
I am getting the error:
Unable to add cookies, header already sent.
File: /home/m3fs/public_html/forum/includes/functions.php
Line: 1
anyone else having that problem. If I set the
// exec_mail_queue(); // Paul M - Cron Mail Queue Hack //
line back to
exec_mail_queue();
it works again. Any ideas?
final kaoss
09-30-2010, 11:14 AM
and your version of vbulletin 4.x is..?
Paul M
09-30-2010, 08:46 PM
I am getting the error:
anyone else having that problem. If I set the
// exec_mail_queue(); // Paul M - Cron Mail Queue Hack //
line back to
exec_mail_queue();
it works again. Any ideas?
I dont see how that could possibly cause that, how exactly are you editing it, and changing it back ?
m3_fs
09-30-2010, 11:00 PM
Yeah I am baffled too. I am editing everything in notepad.
Paul M
10-01-2010, 10:58 AM
e-mail me the edited file.
Dragonsys
10-12-2010, 04:39 PM
However, the more likely answer is you didnt re-do the file edits after you upgraded to 4.0.7.
you are correct, I forgot about the file changes... doh!
imedic
10-15-2010, 07:08 PM
Great mod. Should be default in VB ..
Suggestions for improvement: buton to purge queue in case you found someting wrong and want to resend them.
Frustration with my server 100 mails/ hour gii
Mehmet Aca
11-01-2010, 08:10 PM
Hi;
Can we see how many e-mail has been sent? and to whom ( username - e-mail or user id )
i can show below information. But i think this is not enogh to know the e-mail is sent to all of the user or not
3066 Process Mail Queue 21:06, 1st Nov 2010 Processed Mail Queue
Paul M
11-01-2010, 11:24 PM
No, the number sent is not logged.
vitrag24
12-07-2010, 07:45 AM
my hosts allows 1500/hour, i've set 210/batch, is it ok?
Use mailqueue system - Yes/Yes with locking? i kept yes as of now..
I've 40,000+ users..
anything else i need to edit in settings or default is fine?
TeknoSounds
12-07-2010, 11:08 AM
well you can manually adjust how often the queue sends and how many it sends per batch.
So if you have 1500...say you need to save like 250/hr for other emails your board sends out, so this means you can send 1250/hr without going over your limit.
If you wanted large batches you could send only like 250 every 15min or do small batches of 20 every 3min. Just as an example...I didn't actually figure the math out on those :p
DarKNull
12-07-2010, 06:42 PM
Does this work with Admincp -> Users -> Send email to users ?
Paul M
12-07-2010, 08:22 PM
As it says ;
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.
BiZiMDiYaR
12-12-2010, 02:44 AM
Hi Paul,
Will test this out... Thanks. Would be great if in the future you also could add feature that 1x time per week and email is send to all users.. or per maybe 2x weeks, where in the email, we can add recent posts added, most popular topics of last month etc etc.. This way we can keep the users updated on all items :).
Maybe also... the ability to add holidays into the system and send out pre arranged emails like on Christmas to the users with a particular text that has been set before. :)
Thanks.
Abhik
12-27-2010, 04:08 PM
Paul,
Is it a "set it and forget it" setting?
I mean, Is there anything I need to do after I choose "Users > Send Email To users", write the subject, email body and click on Submit?
ASPnix
01-14-2011, 04:04 PM
Does this work as well for forum subscription notifications?
Paul M
01-14-2011, 07:48 PM
If they use the vb e-mail queue then yes.
Makaveli007
01-17-2011, 11:43 PM
i edited the functions file exactly as stated (not the functions exec_mail_queue();, just exec_mail_queue();) to
// exec_mail_queue(); // Paul M - Cron Mail Queue Hack //
and I get the functions.php syntax error. The line exec_mail_queue is in there twice, once with functions before, once without. I tried changing both, and tried changing just the one with function before it, and tried just with the one that doesn't have function before it. All combos cause the syntax error. When I change the line back, the error goes away.
vbulletin 4.1.1
any ideas Paul? did something in the latest version "break" your modification?
Paul M
01-18-2011, 01:15 AM
Nothing has changed in 4.1.1, so you must be making some kind of mistake, or somehow corrupting your file.
JFYI, the line is near the end of the file (i.e. not the function definition).
Makaveli007
01-18-2011, 02:04 AM
Yes the one towards the end is the one I thought. I tried it probably six times even using ctrl h to find and replace indentically with the install instructions, and tried using wordpad, notepad, and my webhosts file editor. Changing the admincp > email.php in the same manner (ctrl h) worked perfectly. I used this mod great on vb3 and had no trouble editing the files.
screenshot
http://img8.imageshack.us/img8/7910/capturelvy.png
Ill give it a go again in the AM
Paul M
01-18-2011, 10:56 AM
Im afraid imageshack is blocked where I am, I'll try and look tonight (uk).
final kaoss
04-05-2011, 06:17 PM
Updating to vbulletin 4.1.2 PL1, let's see if it still works with that version
vitrag24
04-06-2011, 10:07 AM
After i updated to vb 4.1.2, this mod seems stopped working..
I've sent emails via admincp twice (to 35,000+ users with 210 per batch option) but it was sending email to all users directly without sending in queue..in admincp it was 2000 at once..
tell me wht to do to make it work again?
Paul M
04-06-2011, 04:02 PM
Did you re-do the file edits after you upgraded ?
vitrag24
04-06-2011, 05:37 PM
Did you re-do the file edits after you upgraded ?
Redo file edits mean?
I didn't get u.
I didn't do anything with ur mod after vb update & it was working before.
Today again updated from vb 4.1.2 to vb 4.1.3
Paul M
04-06-2011, 11:07 PM
I didn't do anything with ur mod after vb update
Then thats why it no longer works.
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.
You must re-edit those files whenever you upgrade vb, as you are uploading new files.
vitrag24
04-07-2011, 06:17 AM
Then thats why it no longer works.
You must re-edit those files whenever you upgrade vb, as you are uploading new files.
ok.thx.. did 2 file edits now..anything else i need to do?
or it'll work now when i send email..
final kaoss
04-09-2011, 12:09 AM
Or simply delete them from the package if they're unchanged. (which they usually post in announcements which files were changed) :D
Then thats why it no longer works.
You must re-edit those files whenever you upgrade vb, as you are uploading new files.
The Rocketeer
07-12-2011, 12:25 PM
made the two edits, hopefully it works with 4.1.4
ip-ip
07-19-2011, 11:05 PM
Hi,
Thanks for this goog Hook,
I have "50.000 users" with "35.000 able emails" for mail sending & I need to send mail to all 35.000 able emails every week,
my "Server Rules" for send mail system is "20 send per 1 minute + 3 minutes stop",
so Please help me for best setting in mail option,
Notice: I Installed your Hook
Notice: my vBulletin version is 4.1.4
Thanks.
Paul M
07-20-2011, 10:35 AM
There isnt any way you can do a "send 20 and then wait 3 minutes".
The closest you can get is use the current default of every 10 minutes, and set the limit to 20.
Since this will send 120 per hour, you are never going to be able to send 35,000 per week as 120/hour would take almost two weeks to process that many e-mails.
You need a less restrictive host.
ip-ip
07-21-2011, 12:14 AM
There isnt any way you can do a "send 20 and then wait 3 minutes".
The closest you can get is use the current default of every 10 minutes, and set the limit to 20.
Since this will send 120 per hour, you are never going to be able to send 35,000 per week as 120/hour would take almost two weeks to process that many e-mails.
You need a less restrictive host.
- I installed according to "Cron-mail-queue.txt FILE", How Much take time with this option for 35.000 send mail ?
- my "Mail Setting" now set on "Number of Emails to Send Per Batch: 80" & "E-Mail Send Delay: 0" , Is It ok or Cound I change them ?
Paul M
07-21-2011, 07:29 AM
That would take 3 days. It would also break your hosts restrictions.
ip-ip
07-21-2011, 07:42 PM
If my server accepted your setting, Need I change "Number of Emails to Send Per Batch: 80" & "E-Mail Send Delay: 0" ?
Paul M
07-22-2011, 12:25 AM
Yes.
ip-ip
07-22-2011, 10:59 PM
Yes.
So, please say me What do I need to change this : "Number of Emails to Send Per Batch: 80" & "E-Mail Send Delay: 0"
Tnx.
Paul M
07-23-2011, 12:33 PM
What ?? Im lost now.
You canot do what you asked originally.
The settings you mentioned would send them in three days, but break your hosts restrictions.
After that I dont get what you are asking anymore.
sportsfroma2
07-27-2011, 02:36 AM
Paul, first off- congrats on the new (newish, at least- I just read the announcement @ vbulletin.com) gig with the VB folks..
Do you know a way to include the activation e-mails into the mailqueue? I want to send a reminder activation e-mail to all my users who haven't activated yet, but don't want to violate my Host's TOS- Any way I can accomplish this?
Thanks in advance
sportsfroma2
07-27-2011, 02:52 AM
Actually, If I just "manually" compose an e-mail through the user-->send e-mail to user system and send it to the primary usergoup of "Users Awaiting Email Confirmation" With $activateid and $activatelink in the content of e-mail, Then it would have nearly the same effect and honor the cron-based mailqueue, right?
Paul M
07-27-2011, 03:00 PM
Yes, that sounds right.
ip-ip
09-03-2011, 11:30 AM
Hi,
I changed my server and went to a better server, my new server accepted 1000 send mails per hours and i think this is ok with your mod.
Default Number of Emails to Send Per Batch is 80, but Per Batch will take time is Unknown, How each Batch takes in Default option ?
Paul M
09-03-2011, 02:20 PM
The default is every 10 minutes, if you set the batch to 150, that will give you 900 / hr.
g00gl3r
09-07-2011, 03:50 PM
Just checking that still works with 4.1.5 etc?
g00gl3r
09-07-2011, 04:29 PM
Seems so.
Am I being a bit daft or what here? Where are the options that I need to change to manage how many mails per hour go out? Am I changing the standard VB settings?
g00gl3r
09-08-2011, 07:18 PM
Righteo.
Thread notification emails are not sending.
What setting do I need to change?
99% of our members have instant notification, could do without these being queued, we could lose traffic.
Paul M
09-09-2011, 10:55 PM
There is no such setting, queuing them is hard coded into vb.
g00gl3r
09-11-2011, 03:08 PM
Okay thanks paul. Which setting do I need to change to increase the emails per hour? I'll just increas that somewhat. Our spec server should take it. It's just when I did a mass mail on many forums at the same time we lagged a little.
Your mod is great by the way. Just need to tweak it to get these notifications out at least the same day.
Paul M
09-11-2011, 09:28 PM
'Number of Emails to Send Per Batch' in vboptions. As detailed in the first post. :)
Paul M
10-16-2011, 11:50 AM
Updated: This is now available for the 4.1.x series of vBulletin only.
arkueckelhan
11-18-2011, 09:44 PM
Yes the one towards the end is the one I thought. I tried it probably six times even using ctrl h to find and replace indentically with the install instructions, and tried using wordpad, notepad, and my webhosts file editor. Changing the admincp > email.php in the same manner (ctrl h) worked perfectly. I used this mod great on vb3 and had no trouble editing the files.
screenshot
http://img8.imageshack.us/img8/7910/capturelvy.png
Ill give it a go again in the AM
Paul, I am having this EXACT same error. I am running vbulletin 4.1.7
I get no errors from editing the other files but funcitons.php gives me the syntax error every time. If I return it to before, the error goes away. I am literally opening the file, highlighting the to-be-changed code, and pasting over it with the new code, not editing a single other thing. Does the functions.php need a different chmod or something?
Thanks
(btw, I am installing this on vb4, your other mod for 3.8 worked great for me on another forum)
Paul M
11-18-2011, 11:48 PM
Nothing special is required, nor can I actually see anything wrong with the linked image.
arkueckelhan
11-23-2011, 08:58 PM
Nothing special is required, nor can I actually see anything wrong with the linked image.
The error is live on my site: http://www.battleforums.com/forums/forum.php
Message says:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [path]/includes/functions.php:1) in [path]/includes/facebook/facebook.php on line 37
I made no changes to line 1 of functions.php or touch the facebook.php file AT ALL. Followed your instructions to a T.
Please help me with a workaround.
Thank you
arkueckelhan
11-23-2011, 09:09 PM
Paul. I will post if things change, but if anyone else is having this problem, it seems that mine was due to some issue when editing functions.php in notepad... using notepad ++ solved the issue. I recall having a similar issue back in the day and hopefully this will fix that as well!
arkueckelhan
11-30-2011, 09:58 PM
Delete the e-mails from the mailqueue table.
I need to cancel a mailing after I have started already. How do I clear the data from the mailqueue table?
admin cp> maintenance > repair/ optimize tables
is the closest I have found. Googling didn't yield much help. Could you please shoot me a quick rundown or a link to the information
Paul M
11-30-2011, 10:42 PM
TRUNCATE MAILQUEUE
aboayoy
12-01-2011, 08:05 PM
when i changed function.php
the forum stop and this messege will be shown :
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/functions.php:1) in [path]/includes/functions.php on line 3968
forum
4.1.4
aboayoy
12-01-2011, 08:25 PM
please ,
i want the one for 4.1.4
Paul M
12-02-2011, 11:35 AM
This is for any 4.1.x version.
vB Version: 4.1.x
final kaoss
12-22-2011, 07:15 PM
Paul, ever think about upgrading the little txt document to a diff (http://en.wikipedia.org/wiki/Diff) file?
Paul M
12-22-2011, 08:38 PM
You would need a new version each time the vbulletin file changed.
Sworm
12-29-2011, 08:16 AM
Hi Paul it work on 4.1.9? Thanks.... great job like ever!
athlon64bit
01-25-2012, 08:53 AM
For me it did not work on 4.1.9 nor does it work on 4.1.10. Avatars won't display, reply function to posts, pms etc malfunctions,, browsers such as firefox and opera, only have white screen for adminCP and the emails fail to send. I guess we need to wait for an update for this add-on. If anyone knows of a work around for my problems I would welcome in.
The problems I describe appear to result from editing the includes/functions.php file.
Paul M
01-25-2012, 11:22 AM
I suggest you check your edit.
athlon64bit
01-27-2012, 01:50 PM
I suggest you check your edit.
I have multiple times and I have read over this thread. I have uninstalled/reinstalled multiple times. I am at a loss. Maybe it is something to do with another add-on conflicting? Or something to do with my web server/web host? Thanks for getting back to me.
This is what I see on opera browser, in adminCP, after editing the functions file, in opera browser, . Dunno if that helps. Replying to threads, won't work, box won't load to type in; avatars won't display and the whole forum becomes unusable with all browsers.
Paul M
01-27-2012, 07:50 PM
That's a BOM mark - added to files when you edit then in something like notepad (on windows 7).
It will 100% break a php file as the server will have a fit over it. You need to find a text editor that doesnt do this.
beatyourtruck
03-27-2012, 12:57 AM
Paul. I will post if things change, but if anyone else is having this problem, it seems that mine was due to some issue when editing functions.php in notepad... using notepad ++ solved the issue. I recall having a similar issue back in the day and hopefully this will fix that as well!
Thank you! Was having the same issue with Notepad and Windows 7. Notepad ++ solved my issue also.
http://notepad-plus-plus.org/
arkueckelhan
04-06-2012, 12:14 AM
The cron system was working but recently my site is taking EXCESSIVE amounts of time to start adding emails to the queue (the point right after your write the email and the default value is 500). I dropped the value to 50 and still it is about 4 minutes to add a set of 50 emails. It is NOT sending them out and is successfully adding them to the queue for later processing.
Any thoughts on what is going on?
I recently have cached my pages as well as vbseo, added vb optimise and vb4 supercharged (plug-ins) to my site. Do you know if one of these is causing the issue?
---- I haven't sent any emails out in about 3 months so couldn't tell you if the issue followed one of these things or not.
final kaoss
05-23-2012, 11:33 AM
Well, looks like we won't be needing this mod any more.
Cron-Based Batch Email Sending
Previously, any attempt to send email to a large number of forum users might have resulted in overloading your server and/or running the risk of exceeding your web host's email send limit. We've added batch email sending via cron job to version 4.2 to help you avoid such issues.
Paul M
05-23-2012, 11:42 AM
Correct, its been added to the 4.2 core.
Hi Paul
I tried using this in conjunction with a mod of mine which sends to all users of a specific social group a notification when a new thread is made in a specific forum. This can be well about 4500 e-mails. But when I try to submit a new thread, it gets inserted into the database but the page keeps hanging until it times out. Is it taking so long for the e-mails to be inserted into the queue? Because even after waiting for a while, no e-mails show up in the e-mail queue.
You can find the code I am using here: https://vborg.vbsupport.ru/showthread.php?p=2334619#post2334619
Thank you very much
Sworm
05-31-2012, 06:05 PM
For me this one is better than the one integrated in vb 4.2.0.. With the integrated tool, i have always the queue full. Unuseful tool. I'll reinstall this one on my 4.2.0.
--------------Edit--------------
Not compatible with 4.2.0. :( Paul please help me.
Paul M
05-31-2012, 07:21 PM
For me this one is better than the one integrated in vb 4.2.0.
They are the same.
Not compatible with 4.2.0. :( Paul please help me.
It isnt required for 4.2.
Nirjonadda
08-13-2012, 03:56 PM
Does It work without manually file edit on 4.1.10 ?
carrlos
09-06-2012, 10:36 AM
I was using this mod until updating to 4.2.0 last week. I have not received a new registration email since then. I'm not sure if it's related or not but I don't even know where to begin troubleshooting. Users are getting the activation email but I stopped getting emails of new registrations or emails from forums where I asked to be notified of new posts and threads. Can anyone point me in the right direction to begin troubleshooting?
Paul M
09-07-2012, 11:17 AM
Have you viewed the mail queue ?
hamdanikcung
09-21-2012, 08:43 AM
i wannt to ask the queue in my bulletin stil 2000 queue, i set the packet send 15 email and no delay time .. but only send a few and 1 hour still queue what happen ??
Farsisat
10-15-2012, 06:46 PM
please update for 4.2
Paul M
10-15-2012, 10:43 PM
Did you read the main post ??
This modification is not required for vBulletin 4.2.x Onwards.
sat2006
01-28-2013, 02:23 PM
please update for 4.2
Hostboard
01-28-2013, 02:37 PM
please update for 4.2
Reading the modification description might help :rolleyes:
For vBulletin 4.1.0 Only
Versions Attached
4107: vBulletin 4.1.0 to 4.1.12
This modification is not available for vBulletin 4.0.x
This modification is not required for vBulletin 4.2.x Onwards.
Kraxell
02-10-2013, 08:43 AM
But why? Is there a option in vb4.2 what makes this plugin sinless?
Because i need a plugin to send only x mails/hour.
Paul M
02-10-2013, 12:27 PM
But why?
Because its part of the core code in 4.2
sat2006
02-11-2013, 10:21 AM
I sent an e-mail every minute
What should I do? For version 4.2.0
i need this plugin for v4.2.0 what dont you update this plugin????
Paul M
02-11-2013, 11:31 AM
Why dont you try reading the post above yours.
astdirect
03-06-2015, 02:24 PM
Hi Paul,
I had this installed previously and obviously uninstalled when upgrading to 4.2 latest version with patch this week. Somehow when uninstalling though it seemed to remove the scheduled task for Process Mail Queue. No biggie, just set new one up but........ now my queue isn't going down as it should, it's set to run 80 per batch every 10 minutes but looking at my logs this is what I have :
41620 Process E-Mail Queue 16:09, 6th Mar 2015 E-mail Processing completed
41619 Process E-Mail Queue 15:01, 6th Mar 2015 E-mail Processing completed
41618 vB Optimise: Resource Saving Statistics 14:55, 6th Mar 2015
41617 Process E-Mail Queue 13:20, 6th Mar 2015 E-mail Processing completed
41616 vB Optimise: Resource Saving Statistics 11:43, 6th Mar 2015
41615 Process E-Mail Queue 11:34, 6th Mar 2015 E-mail Processing completed
41614 Process E-Mail Queue 09:45, 6th Mar 2015 E-mail Processing completed
41613 vB Optimise: Resource Saving Statistics 09:45, 6th Mar 2015
41612 Stop the Registration Bots Random Field Generator 08:03, 6th Mar 2015 Stop the Registration Bots Rand Generator [Finished]
41611 Stop the Registration Bots Random Field Generator 08:03, 6th Mar 2015 Stop the Registration Bots Rand Generator [Started]
41610 Daily Digest 07:00, 6th Mar 2015 Daily Digest Sent
41609 Birthdays 07:00, 6th Mar 2015 Birthday Email Sent to: 02hero
41608 Process E-Mail Queue 04:43, 6th Mar 2015 E-mail Processing completed
41607 vB Optimise: Resource Saving Statistics 04:43, 6th Mar 2015
41606 vB Optimise: Resource Saving Statistics 22:46, 5th Mar 2015
If I select RUN NOW it will send a batch of 80, but the cron seems to be working very intermittently and not every 10 mins as you would expect.
Any help would be appreciated as to what may have happened
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.