Moderators: Dragonrider, J_S, Hernol, vancoovur, H2B2, Heritage
drubarth wrote: # Throttle sending messages; indicates the number of milliseconds to pause
# between each message (millisecond is one-millionth of a second)
define("MAILQUEUE_PROCESSING_THROTTLE",300000);
# Throttle sending messages; indicates the number of microseconds to pause
# between each message (microsecond is one-millionth of a second)
# Use this formula to calculate a suitable value.
# ((Number of hours required to send emails x 3600000000)/Number of emails)
# Example: To send out 12000 e-mails in 48 hours the formula would be:
# ((48 x 3600000000)/12000) answer 14400000 microseconds to complete task
define("MAILQUEUE_PROCESSING_THROTTLE",14400000);
# Throttle sending messages; indicates the number of seconds to pause
# between each message (fractions are allowed, e.g. 0.3)
define("MAILQUEUE_PROCESSING_THROTTLE",0.5);
$status = Sql_query("update {$tables['message']} set processed = processed +1 where id = $messageid");
usleep((MAILQUEUE_PROCESSING_THROTTLE)*1000000);
Return to Advanced Answers, Howtos, Tips & Tricks
Users browsing this forum: No registered users and 0 guests