log failed errors
Posted: Wed Jun 13, 2007 11:50 am
hi,
Just wanted to confirm something and ask for advice to mitigate it if possible.
I have to send a newsletter to about 10K addresses each month. I would like to capture all the initial failures like so:
but AIUI, all the mails in the queue would have to be sent before I could get a full count.
This may take some time with the amount being sent and a php process would be sitting there waiting for the result, so apart from the obvious answers of "get more ram / faster machine etc", is there any tips on how to speed up the processing to get the failed count in a quicker time?
I'm using the Sendmail Connection as it gives me better results than the NativeMail connection. The box is running Debian Sarge and the script is executed via the CLI.
thanks for your time and any (sensible) advice given,
Paul
Just wanted to confirm something and ask for advice to mitigate it if possible.
I have to send a newsletter to about 10K addresses each month. I would like to capture all the initial failures like so:
Code: Select all
... sending stuff here...
$failed = $swift->log->getFailedRecipients();
if ($sent) {
echo("******************** MAILS SENT ********************\n");
echo("Total of $sent mails sent to recipient\n\n");
}
if (0 < count($failed)) {
echo("******************** MAILS NOT SENT ********************");
echo("Total of ".count($failed)." mails were not sent\n");
foreach($failed as $email) {
echo("$email\n");
}
}This may take some time with the amount being sent and a php process would be sitting there waiting for the result, so apart from the obvious answers of "get more ram / faster machine etc", is there any tips on how to speed up the processing to get the failed count in a quicker time?
I'm using the Sendmail Connection as it gives me better results than the NativeMail connection. The box is running Debian Sarge and the script is executed via the CLI.
thanks for your time and any (sensible) advice given,
Paul