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)

FRANKTHETANK 2 03-07-2009 01:16 PM

ok now i sent a total of 12,000 emails. now it was 11,264 yesterday. now its this? what is wrong here

There are currently 16,380 unsent emails remaining in the mail queue.

vwdforum 03-07-2009 03:29 PM

How do you delete unsent emails still in the queue? I sent a test email to all my members other than just myself boo

FRANKTHETANK 2 03-07-2009 06:27 PM

i like this mod. but i don't like how there is no Vb options settings for it. why not make one like CYB stuff?

Paul M 03-07-2009 09:20 PM

Huh ?

FRANKTHETANK 2 03-07-2009 11:33 PM

Quote:

Originally Posted by Paul M (Post 1762778)
Huh ?

your addon sucks as to where to adjust it or change it. cybernetic or CYB's stuff, has a page in vboptions after installed to do adjustments and check it. you need to make one for this

and HUH? doesn't answer questions of why i have 12,000 members and its showing 13,624 in my mail queue? when does it ever send all emails?and does it ever stop? how do i check all this? that's why there should be a template or whatever you call it under vb options in ACP

FRANKTHETANK 2 03-07-2009 11:43 PM

JUST KEEPS GOING UP!LOL

There are currently 13,663 unsent emails remaining in the mail queue.

just now

Paul M 03-08-2009 01:37 PM

Maybe you should just remove it and move on.

obmob 03-08-2009 06:15 PM

HAHA, I was thinking that Paul.

Maybe the batch size is too small or the time delay between emails is not 0.

FRANKTHETANK 2 03-08-2009 10:44 PM

cause i want to use this cause i cant do mass email another way. i would like you to tell me how to fix this. you make mod and cant give me support?

Paul M 03-09-2009 10:22 AM

If you want support then maybe saying it sucks is not the way to go ;)

belal_najjar 03-09-2009 11:17 AM

Quote:

Originally Posted by FRANKTHETANK 2 (Post 1762839)

and HUH? doesn't answer questions


:up::up::up:

its better to delete the support instead of writing huh:rolleyes:!!!!

& i ws wrong by using it & as u said its better to delete it:cool:!

Bulldog Stang 03-10-2009 08:35 AM

Installed!!! Works GREAT!!!

FRANKTHETANK 2 03-12-2009 08:44 PM

Quote:

Originally Posted by Paul M (Post 1763894)
If you want support then maybe saying it sucks is not the way to go ;)


well "HUH" wasn't support!

thanks anyways. ill delete and not you your products anymore:mad:

Paul M 03-12-2009 08:46 PM

As you wish, your loss, not mine :)

obmob 03-13-2009 06:00 PM

LOL somehow i was sent back to my elementary school days XD

Icy 03-25-2009 02:58 PM

Though its not a big deal but the Scheduled Task Title still shows Process Mail Queue for vBulletin 3.7 :)

Paul M 03-25-2009 06:44 PM

Oh well, I can live with that for now. Thanks.

PPUS 03-30-2009 01:49 AM

Installed and clicked....

Is this correct:

In ACP email settings:
Number of emails per batch is set to 50
Email send delay: 9 sec
This will blast out 450 mails/hr correct?

And... Once I begin the mail, do I need to keep the window open or will it dump to server cron queue and send regardless of my pc?

Thanks for making this, I will be elated to delete my phplist mailer...

Will re-post back on success of it working.

Paul M 03-30-2009 07:17 AM

You do not need to set the send delay to 9 seconds, generally this is not needed at all, 1 or 2 seconds is good enough if you really want to use it.

Vinyljunky 03-30-2009 10:36 AM

Paul,

Thank you for another quality mod :up:

Regards

VJ

PPUS 03-30-2009 03:02 PM

OK, thanks Paul... so I have it set as:

Number of Emails to Send Per Batch: 50 and the delay at 1 second. Is this the only setting I need? I do not want to exceed 500/hour as I am allowed 600 and the extra 100 is for other functions and email users on the server. I am I correct that there are no settings in the mod/hack, only those in the ACP?

Gotta say I am nervous as a long tail cat in a room of rocking chairs.

Paul M 03-30-2009 04:15 PM

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.

PPUS 03-30-2009 04:48 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.

Ahh, the light bulb comes on, I did not realize the cron ran 6x per hour. So whatever I put in the field is x6 to give me the hourly send rate. So a quick math lesson for other:

Setting the "Number of Emails to Send Per Batch" to:

50 = 300/hr
60 = 360/hr
70 = 420/hr
80 = 480/hr
90 = 540/hr

Perfect! I got it now, Thanks again Paul.

tehPARADOX 03-31-2009 01:23 PM

I just wanted to stop by to warn you guys:

If you have say over 200,000 emails queued and you decide to upgrade vbulletin, make sure to do the file edits on the new files immediately before uploading it!

I made the noob mistake of uploading a fresh functions.php onto the server. Within seconds, all the emails were sent out, bringing my server to a halt with a load of 1000+.

I didn't know what the heck was going on until I saw exim crash.

obmob 03-31-2009 11:06 PM

Hmm... yeah, editing first might be a wise action :p

Plasma2002 04-02-2009 05:39 PM

Hey Paul,

Ive been using this addon for quite a while now and it has been a lifesaver... but i have a question.

Maybe it has nothing to do with your addon, and its more of a vBulletin thing, but you may know the answer anyways :)


I dont have much traffic on my forums (most the traffic is on the main site), so this becomes a problem when, say, in the middle of the night, i have a newsletter that needs to go out to 8,000 people that doesnt get finished until the next couple weeks.

What i tried to do to remedy this was make my local machine at home just do a simple wget of vBulletin's cron.php file every 5 minutes.

I figured this would be the best solution... but for some reason, when i look at my mailqueue from the adminpanel, it shows that the number of unsent mails never changed when i just hit the cron.php file... but it works fine if i leave a browser on the forums and make it reaload every 60 seconds.

Would you happen to have any idea how i can manually execute the cron and make my emails send out when my forums are empty?


Thanks :)


EDIT: I found out my problem, in case anybody got here by googling. it was in fact my wget script... if you are trying to run your cron's manually, simply make something hit cron.php on your forums.

Paul M 04-02-2009 07:16 PM

Sorry, I dont.

cellow 04-20-2009 07:59 AM

Quote:

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.
All my activation links are queued. My Users are waiting up to 10 minutes for their activation e-mails.

How can i solve this problem?

Paul M 04-20-2009 09:22 AM

As it says, activation e-mails are not queued by vb.

cellow 04-20-2009 12:48 PM

did you test it on your forum? Why my vb queued activation links?
how can i solve this problem?

Paul M 04-20-2009 12:52 PM

I dont need to test it, just look at the registration code.

Activation e-mails (to members) are not queued. All that gets queued is New User Notification e-mails.

There is no problem to solve.

nohuhu 05-02-2009 06:37 PM

Paul M,

russian translation for your must-have mod.

LAJAURIA 05-18-2009 11:42 PM

I can't find where I can change the options in the ACP. :(

plothook 06-09-2009 05:12 PM

Just thought I'd mention:
The scheduled task this product creates is titled "Process Mail Queue for vBulletin 3.7"
The title has no real effect, but it's an easy fix

Paul M 06-09-2009 07:49 PM

Yeah, See posts #56 & #57. :)

Makaveli007 06-11-2009 12:24 AM

i get a parse error in functions.php everytime. i edited EXACTLY as the instructions stated. there are actually two parts in functions.php that has the exec_mail_queue();

one is functions exec_mail_queue() and then further down is exec_mail_queue(); (with an ; at the end)

i changed the one with the ; exactly as the instructions stated and got the parse error. i then tried every possible combination of changing/not changing the two instances of exec_mail_queue(); and got the parse error every time.

am i doing something wrong?

p.s. parse error was on line 944 everytime

2zoo 06-13-2009 09:14 PM

i tried this before and its working perfectly
thanks

Paul M 06-13-2009 11:12 PM

Quote:

Originally Posted by Makaveli007 (Post 1827346)
i get a parse error in functions.php everytime. i edited EXACTLY as the instructions stated. there are actually two parts in functions.php that has the exec_mail_queue();

one is functions exec_mail_queue() and then further down is exec_mail_queue(); (with an ; at the end)

i changed the one with the ; exactly as the instructions stated and got the parse error. i then tried every possible combination of changing/not changing the two instances of exec_mail_queue(); and got the parse error every time.

am i doing something wrong?

p.s. parse error was on line 944 everytime

The instructions do not say "Function exec_mail_queue()" they only say "exec_mail_queue()" - this is almost at the end of the file. Changing anything else is likely to cause errors. :)

marshal_ramdev 06-25-2009 12:36 PM

thanks

thincom2000 07-19-2009 11:52 PM

I was getting a MySQL timeout error when sending only - count it - 1 email via a Report Post form. Fixed it by replacing the mail_send plugin. This edit also makes it possible to use this mod with no file edits:
Code:

if ($this->registry->options['usemailqueue'] AND get_class($this) == 'vB_Mail')
{
        $qmail =& vB_QueueMail::fetch_instance();
        $qmail->toemail = $this->toemail;
        $qmail->subject = $this->subject;
        $qmail->message = $this->message;
        $qmail->headers = $this->headers;
        $qmail->fromemail = $this->fromemail;
        $qmail->delimiter = $this->delimiter;
        $qmail->registry = $this->registry;
        $qmail->debug = $this->debug;
        $qmail->log = $this->log;
        $qmail->send();
        unset($qmail);

        $this->toemail = '';
}
else
{
        $delay = intval($vbulletin->options['cmqdelay']);
        if ($delay > 0 AND $delay < 10)
        {
                sleep($delay);
        }
}

Also create a plugin at hook global_shutdown with the following code:
Code:

$vbulletin->mailqueue = null;


All times are GMT. The time now is 12:26 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.01455 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
  • (2)bbcode_code_printable
  • (6)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