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

weindians 10-22-2010 05:14 PM

i want to know whether u need to leave ur brower [acp] on until all emails sent out like the phplist does or queueing is going to server side?? i need to know b4 installing . if so i will continue to use phplist... thanx paul for the mod

Paul M 10-23-2010 01:32 PM

Please clarify your question.

weindians 10-24-2010 09:14 PM

Quote:

Originally Posted by Paul M (Post 2113173)
Please clarify your question.

not much to clarify... as it says "do i need to leave the email sending interface of acp open [ simply browser] until all emails sent out [ or until job finish] or will it stop if i close browser? . can i move on when all emails sent to queue ,confirmed in acp[ i suppose as i havent tested yet]

edit : i installed n cleared myself .

weindians 11-01-2010 10:47 PM

mailque in acp says 3,761 in queue. i sent mails yesterday around same time... total members 4600+ . but when sent all mail queue was below 4000 [ it was about 3900+ as far a i remember], i donno where is other 600-700 mails? may be banned n other etc. scheduled task[cron] for mailque seem to be not running every 10 mts.. my batch setting is 30 . delay 0 [ i changed to 1 now to see - no effect , may be mails already in queue]. but number reduced by 30 when i ran sch.task manually.. diagnotic email tested n working..

Paul M 11-01-2010 11:25 PM

Again, I dont follow what your actual question is ?

weindians 11-02-2010 08:29 PM

Quote:

Originally Posted by Paul M (Post 2116965)
Again, I dont follow what your actual question is ?

actual question is why mailque still 3700+ even after 48 hours[now] when set to send 180 email/hour??.. or this mod send emails only if that member visit forum.
..

Paul M 11-02-2010 08:57 PM

Quote:

actual question is why mailque still 3700+ even after 48 hours[now] when set to send 180 email/hour??.
Since any answer to that question would require access to your server and ACP to see how its set-up and working, I cannot answer it.

weindians 11-03-2010 07:48 AM

if u tell me what info related to server n acp needed i can provide you... below is scheduled task log...as per log it seems running 2-3 times a day only.. setting are default 10 ,20, 30,40 etc...

http://i53.tinypic.com/zthq48.jpg

Paul M 11-03-2010 11:23 AM

Unfortunately I cant view that from work (they block tinypic) so I'll look later. Initially I think i'd only need ACP access if you want to PM me an admin login with full access.

Paul M 11-03-2010 09:27 PM

The picture above confirms what I found from the access you gave me. Your problem is that your site is not busy enough to keep the vb cron system running - it needs regular visitors (not spiders) to keep it running. As you can see from you picture, its only managing to run the schedule very sporadically (about once an hour in the day, hardly at all at night).

About the only thing you can do is increase the batch size, so at least when it does run, it processes more. Try something like 200.

weindians 11-03-2010 09:31 PM

ok... thanx for finding out that.... anyway now it has sent more mails as queue reduced to 3200+

FreshFroot 01-22-2011 10:32 PM

Quote:

Originally Posted by Paul M (Post 1780417)
The cron runs 6 times an hour (every 10 minutes), so 50 x 6 = 300 an hour, well under your 500/Hr - you are fine.

THIS ABOVE...

should be in your intro post.

I was looking for this to see how this work to add my setting...

No wonder users are confused...

You need to remember more than half the people here are NOT programmers. So they won't understand some of your terms. They just need straight answers :p

maznos 03-23-2011 02:51 PM

Hello,

Does this hack work under 4.x

SVTCobraLTD 04-03-2011 03:03 AM

Installed on 3.8.x but does not seem to be working correctly. Emails are all going out at once with no regard to my setting of only 40 per batch.

Paul M 04-03-2011 10:05 AM

Which would suggest you missed doing something.

SVTCobraLTD 04-06-2011 02:03 PM

Quote:

Originally Posted by Paul M (Post 2180364)
Which would suggest you missed doing something.

Upload 1 item and import another. I don't see how that can be missed?

Paul M 04-06-2011 04:05 PM

So you read this, and did it ?

Quote:

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).

SVTCobraLTD 04-06-2011 04:46 PM

I read the instructions you provided with the download and that is not stated anywhere.....

Quote:

<!-- $Header: d:\cvs/3.8/Cron-mail-queue/Cron-mail-queue.txt,v 1.1 2008/10/05 15:15:58 pem Exp $ -->


Cron Mail Queue for vBulletin 3.8
---------------------------------


Step 1.

In admincp/email.php

find ;

vbmail($user['email'], $vbulletin->GPC['subject'], $sendmessage, true, $vbulletin->GPC['from']);

change to ;

vbmail($user['email'], $vbulletin->GPC['subject'], $sendmessage, false, $vbulletin->GPC['from']); // Paul M - Queue Admin Mail //



Step 2.

In includes/functions.php

find ;

exec_mail_queue();

change to ;

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



Step 3.

Upload mailqueue.php to /includes/cron/



Step 4.

Import the product into vBulletin via the ACP Product Manager.

SVTCobraLTD 04-06-2011 04:50 PM

Quote:

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).
This is done with "Yes with locking" chosen and the value set to 40. Still all emails go through right away.

Paul M 04-06-2011 11:04 PM

Quote:

Originally Posted by SVTCobraLTD (Post 2181581)
I read the instructions you provided with the download and that is not stated anywhere.....

Its in the main post of the thread.

Quote:

Originally Posted by SVTCobraLTD (Post 2181585)
This is done with "Yes with locking" chosen and the value set to 40. Still all emails go through right away.

Im afraid there is nothing more I can tell you. Without admin and ftp access I cannot check you have done everything correctly.

SVTCobraLTD 04-07-2011 09:40 AM

Quote:

Originally Posted by Paul M (Post 2181722)
Its in the main post of the thread.

I would highly recommend putting ALL of the instruction in the downloaded instructions instead of just some of the instruction there and the rest in the thread.

al98t 05-04-2011 09:01 PM

installed, turned on, and set to 70. should put me around 420emails per hour!

thanks!

ctrlbrk 05-05-2011 08:55 AM

Brilliant mod, I really needed this, thank you!

Mike

ctrlbrk 05-05-2011 09:09 AM

BTW, would it please be possible to add a small bit of prioritization. Private Messages = highest, and Admin "Send email to users" (newsletters) = lowest.

I am sending over 10,000 email newsletter-type messages right now, which is fine if it takes a few hours. But not so cool if all private messages get delayed until this email blast is over.

Code:

There are currently 10,455 unsent emails remaining in the mail queue.
Mike

Paul M 05-05-2011 10:06 AM

Sorry, there is no priority concept in vbulletin, adding one is beyond the scope of this mod.

ctrlbrk 05-05-2011 10:14 AM

Quote:

Originally Posted by Paul M (Post 2192189)
Sorry, there is priority concept in vbulletin, adding one is beyond the scope of this mod.

OK. Well, I am happy to pay you for it, or make a nice size donation to your favorite charity. I can't find any good programmers anymore, have gone thru ten in the last two years, thrown good money after bad, and in the end no one programmer can ever do things right. Most can't even reply to emails.

So if I could somehow convince you -- at minimum the Private Message thing, it is very important for me.

Thx for all the work you've done.

Mike

Paul M 05-05-2011 11:01 AM

Oops, the word "no" was missing from my reply, not sure if you noticed that.

Adding a priority to the vb mail system would not be something that could be done by plugins, it would need code changes. Im afraid I simply dont have the time to look at such work (at least not unless you are very rich !).

SVTCobraLTD 05-08-2011 03:43 PM

Still no go. I send 300 hundred at once. Admincp page says 300 being processed, hit refresh 260, hit refresh 220 and so on. I have the settings as described in the first post and instructions and it's still processing them 40 at a time instead of 40 every 10 minutes.

Paul M 05-08-2011 04:05 PM

My previous reply still stands.

Quote:

Im afraid there is nothing more I can tell you. Without admin and ftp access I cannot check you have done everything correctly.

arkueckelhan 10-19-2011 10:14 PM

I have been looking for this solution forever now. I can not describe how happy I am that you created this.

Thank you,
[marked as installed]

viper357 10-26-2011 05:20 AM

Hi Paul, quick question please.

I want to use this purely for when I send out bulk emails, so instead of installing and uninstalling each time, can I simply change from 'yes' to 'no' in the vb options for using the mailqueue system, will that then stop vb from using this mod and it will revert to sending out the emails normally? Or does this mod have to be removed before that will happen? Thanks.

Paul M 10-26-2011 09:21 AM

As far as I'm aware that would work. Its a long while since i did anything with the e-mail system.

arkueckelhan 10-26-2011 08:58 PM

I have a large forum (about 80,000). I installed the mod and set batch size (in Email options) to 70 with a 6 second delay, and to process every 10 mins in the scheduled tasks. When I attempt to send emails from ACP> Users> "Send emails to users" the process will begin and it shows me emails sending successfully every 6 seconds. (on that page Emails to send at once is set to 500).

Is it possible for me to NOT keep this page open? It would take it like 8 days to run and I'm certain it would timeout within an hour. How do I get this process to work after leaving the emailing page, or how do I get it to go to the queue so it can then be sent out slowly?

Paul M 10-26-2011 10:06 PM

The only way you could do this is to set it to 0 while using the "Send emails to users" - it should then zoom through them at 500 a time (but is just adding them to the queue, not sending them). Once done, change the value back to 6. I would add that I think 6 is an excessivly large value to use.

arkueckelhan 10-26-2011 10:47 PM

Quote:

Originally Posted by Paul M (Post 2261846)
The only way you could do this is to set it to 0 while using the "Send emails to users" - it should then zoom through them at 500 a time (but is just adding them to the queue, not sending them). Once done, change the value back to 6. I would add that I think 6 is an excessivly large value to use.

Thanks for the assistance.

With such a huge memberbase as mine, would you suggest setting to 0, and then processing smaller batches every minute (rather than 10), so my server doesn't get bogged down?

And once all were added to the queue and changing the value back to 6, would that apply the 6 second delay to the processing of the queue?


Thanks Paul

Paul M 10-27-2011 10:20 AM

Quote:

Originally Posted by arkueckelhan (Post 2261859)
With such a huge memberbase as mine, would you suggest setting to 0, and then processing smaller batches every minute (rather than 10), so my server doesn't get bogged down?

That would seem a better choice IMO.

Quote:

Originally Posted by arkueckelhan (Post 2261859)
And once all were added to the queue and changing the value back to 6, would that apply the 6 second delay to the processing of the queue?

Yes, it should.

arkueckelhan 10-27-2011 12:25 PM

Thanks Paul. I'll run it today and let everyone know if that was successful!

pspcrazy 01-26-2012 07:44 AM

Hi Paul I've been using this for a while, but for some reason my daily digest (email sent once a day) doesn't queue up even though mass mailing do.
I have set it to mailqueue on, and the system works fine other then the daily digest emails which timeout or cause high server load.
Any ideas?

Thanks for the great mod.

Paul M 01-26-2012 11:18 AM

It would depend on whether vb queues them by default, this wont process them unless the original code queues them in the first place.

Selene 01-30-2012 04:19 PM

I am running latest 3.8.7 and have over 150K members.

Will this work on the current latest 3.8.7


All times are GMT. The time now is 05:20 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.01710 seconds
  • Memory Usage 1,829KB
  • 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
  • (1)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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