vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Cron based e-mail sending (https://vborg.vbsupport.ru/showthread.php?t=231715)

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:

Quote:

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

Code:

// exec_mail_queue(); // Paul M - Cron Mail Queue Hack //
line back to

Code:

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

Quote:

Originally Posted by m3_fs (Post 2104929)
I am getting the error:



anyone else having that problem. If I set the

Code:

// exec_mail_queue(); // Paul M - Cron Mail Queue Hack //
line back to

Code:

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

Quote:

Originally Posted by Paul M (Post 2103957)
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 ;

Quote:

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

Quote:

Originally Posted by Paul M (Post 2181573)
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

Quote:

Originally Posted by vitrag24 (Post 2181596)
I didn't do anything with ur mod after vb update

Then thats why it no longer works.

Quote:

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

Quote:

Originally Posted by Paul M (Post 2181725)
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

Quote:

Originally Posted by Paul M (Post 2181725)
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

Quote:

Originally Posted by Paul M (Post 2222796)
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

Quote:

Originally Posted by Paul M (Post 2223406)
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?


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02647 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete