Email Timeout
Jamroom Developers
Not understanding sorry. You want to know where the
ACP -> COMMUNICATION -> EMAIL CORE -> GLOBAL CONFIG -> MAX SEND RATE (per minute)
takes effect in the code? which file/line?
That setting sets a config variable named:
$_conf['jrMailer_throttle']
Its used in many places, so a search of the codebase is probably the easiest way to locate the point you're interested in.
Possibly this line is what your after (guess):
/modules/jrCore/include.php in the _init() function
if (isset($_conf['jrMailer_throttle']) && $_conf['jrMailer_throttle'] > 0) {
jrCore_register_queue_worker('jrCore', 'send_email', 'jrCore_send_email_queue_worker', intval($_conf['jrMailer_throttle']), 1);
}
else {
jrCore_register_queue_worker('jrCore', 'send_email', 'jrCore_send_email_queue_worker', 0, 4);
}
That reads,
"If the mail throttle setting is set, then configure the sending email queue workers to fire off at the defined interval"