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=133844)

dartho 11-19-2007 10:37 AM

Quote:

Originally Posted by Paul M (Post 1385413)
Quote:

If a forum were to have no visitors in say a two hour period, are missed vb cron jobs then executed? The result being that the task for this add-on may run all missed tasks and thereby possibly causing quotas to be exceeded?
Sorry, but I don't understand what you mean by this.

To re-phrase, are missed cron jobs still executed at the next opporutinty? For example, if there are no visitors for 2 hours then the (default - every 10 minutes) 'process mail queue' cron job would would miss 12 'executions' of the job. Would these missed 'executions' then all (12) be run at the next opportunity, or would the never be run.

The reason I ask is that if I were on a throttled account of say 500 emails/hour and had configured my vb system to send batches of 100 emails every 10 minutes (using this add-on) and if all 12 missed executions were run at the next opportunity, that would be 1200 emails send in a short space of time - totally trashing my 500 email/hour limit.

Clear as mud?

Paul M 11-19-2007 12:18 PM

No, that will not happen - the cron job is only triggered once - if you have no visitors for two hours then it won't fire 12 times, just the once.

laura66a 11-25-2007 12:26 PM

Quote:

Originally Posted by Paul M (Post 1385414)
Huh ?

Can you please be a bit more specific.

Sure.

I have Cron Mail Queue installed and it was working great. I have it set to send 5 emails per minute which works fine for my site when I send out my weekly updates.

I recently changed my SMTP port setting from 25 to 587 at the request of my provider. There is a vBulletin option for this, but you also have to change SMTP_Port= in PHP to 587 as well to get it to work.

After I made the change, my last round of weekly updates went out all at once instead of 5 per minute. They all were successful, but they did go out all at once.

Laura

Paul M 11-25-2007 01:36 PM

The change you made cannot affect this modification in any way, maybe your e-mail server just queued them all up.

laura66a 11-25-2007 01:48 PM

Quote:

Originally Posted by Paul M (Post 1389150)
The change you made cannot affect this modification in any way, maybe your e-mail server just queued them all up.

Perhaps it can't affect the mod, but the PHP change can certainly affect the way vBulletin works relative to the mod.

I did change this back to port 25 and it worked as expected sending 5 emails per minute.

Laura

plothook 12-06-2007 10:10 AM

* Clicks Mark as Uninstalled *
Just what we needed to get all our stuff out past our hosts 200 emails/hour limit @30 emails /10 minutes
Now everyone will get their daily e-mail notifications, even if it does take the system 3-4 hours to get the job done.

Thanks Paul!
---------------------------------
now if it only were truely CRON based and didn't depend on site activity, though we always get more than enough site hits to trigger things

SVTCobraLTD 12-26-2007 11:15 AM

Installed using hostgator. Thank you, exactually what I needed and will be setting it to 25 emails per batch. Thanks - Nominated for mod of the month.

SVT

SVTCobraLTD 12-26-2007 11:17 AM

Quote:

Originally Posted by Antivirus (Post 1367832)
Great modification Paul, really helps with sending out emails to large amounts of members. I found myself wondering how many emails were in the queue quite often however, and I got tired of manually running a SELECT query in the console to find out how many emails were remaining in the queue... so i coded the attached add-on for your mod which adds the quantity of remaining emails in the mail queue to the AdminCP page.

You can see a screenpic of what it does in the attached "screenie.gif" image. I just thought I would share it with everyone who's using this mod, makes life a little easier. :)

A great addition to this great hack.

SVT

dartho 12-27-2007 06:58 AM


^
|
|
|


What (s)he said x 2 :up:

Farcaster 12-27-2007 04:13 PM

I have to agree. This plus the crontab based vbcron jobs is a killer combination!


All times are GMT. The time now is 06:44 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.01141 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)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
  • (10)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