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)

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 06:35 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.01271 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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