1599 emails failed (will retry later)
Then chances are your process queue is broken, it will take weeks to remove all those emails from the queue. I don't know why, but there is a simple piece of code that can "unsubscribe" failed users automaticaly, but its disabled by default.
The following patch will enable automatic unsubscription of failed emails and your process queue will run much faster and will complete without any issues related to failed emails.
- Code: Select all
--- processqueue.php.orig 2007-05-07 00:33:57.000000000 +0300
+++ processqueue.php 2007-05-07 00:34:45.000000000 +0300
@@ -668,11 +668,11 @@
}
# make sure it's not because it's an invalid email
# unconfirm this user, so they're not included next time
- if (!$throttled && !validateEmail($useremail)) {
+ //if (!$throttled && !validateEmail($useremail)) {
logEvent("invalid email $useremail user marked unconfirmed");
Sql_Query(sprintf('update %s set confirmed = 0 where email = "%s"',
$GLOBALS['tables']['user'],$useremail));
- }
+ //}
}
if ($script_stage < 5) {
$script_stage = 5; # we have actually sent one user