diff -u3rb oemp/public/cron_per_tasks.php oempv3210.drhpatched/public/cron_per_tasks.php --- oemp/public/cron_per_tasks.php Mon Mar 24 10:33:00 2003 +++ oempv3210.drhpatched/public/cron_per_tasks.php Fri Nov 21 16:19:24 2003 @@ -9,6 +9,8 @@ ====================================== */ +$print_status_to_output = 1; + //--------------------------------------------------------------[ First Part - STARTED //--------------------------------------------------------------[ Get system path @@ -120,6 +122,7 @@ print("Process completed. ".number_format($TotalSentScheduledEmails)." scheduled emails are processed"); print("
"); print("This is a CRON/Scheduled Task module"); +print("\n"); // Give a message to the screen - FINISHED // Make last processes diff -u3rb oemp/system/classes/class_mailer.php oempv3210.drhpatched/system/classes/class_mailer.php --- oemp/system/classes/class_mailer.php Fri Aug 8 15:39:00 2003 +++ oempv3210.drhpatched/system/classes/class_mailer.php Mon Nov 24 22:37:05 2003 @@ -409,6 +409,9 @@ $header = ""; $body = ""; +# ==================== HACK HACK HACK HACK HACK HACK HACK HACK HACK ==================== +$this->IsQmail(); + if((count($this->to) + count($this->cc) + count($this->bcc)) < 1) { $this->SetError($this->Lang("provide_address")); diff -u3rb oemp/system/classes/class_octethsendengine.php oempv3210.drhpatched/system/classes/class_octethsendengine.php --- oemp/system/classes/class_octethsendengine.php Thu Aug 14 10:17:00 2003 +++ oempv3210.drhpatched/system/classes/class_octethsendengine.php Tue Nov 25 14:04:48 2003 @@ -304,7 +304,7 @@ var $_ArchiveRecipients = ""; var $_ArchiveAttachedFiles = ""; var $_ObjectMailer = object; -var $_AmountOfRowsToProcess = 30; +var $_AmountOfRowsToProcess = 1200; var $_TotalPeriods = 0; var $_LoopStart = 0; var $_TotalSentEmails = 0; @@ -1272,6 +1272,9 @@ $this->_ObjectMailer->XMailer = $this->_ArrayConfig["mailer"]; $this->_ObjectMailer->ReturnPath = $this->_ReturnPathEmail; + # drh fix + $this->_ObjectMailer->Sender = $this->_ReturnPathEmail; + $this->_ObjectMailer->AddReplyTo($this->_ReplyToEmail, $this->_ReplyToName); return true; @@ -1328,7 +1331,7 @@ // Void OUT N/A N/A function InitializeEmailSendingVars() { - $this->_AmountOfRowsToProcess = 30; + $this->_AmountOfRowsToProcess = 1200; $this->_TotalPeriods = ceil($this->_TotalRecipients / $this->_AmountOfRowsToProcess); $this->_LoopStart = 0; $this->_TotalSentEmails = 0; @@ -1724,6 +1727,8 @@ // Void OUT N/A N/A function SendEmails() { + global $print_status_to_output; + // Intialize method veriables - STARTED $ErrorExists = false; $CurrentSMTPCounter = 0; @@ -2111,9 +2116,16 @@ if ($this->_ObjectMailer->Send() == false) { // Sending failed + + if ($print_status_to_output) + { + echo $EachSubscriber['email'], ", failure\n"; + } + $this->_TotalFailedRecipients++; // If enabled, record to error log with the error message and enough information - STARTED + if ($this->KeepErrorLog == true) { $LogRow = $this->_InstantStatID." - ".$this->_ArchiveID." - ".$EachSubscriber['subscriber_id']." - ".$EachSubscriber['email']." - ".$this->_ObjectMailer->ErrorInfo."\n"; @@ -2124,6 +2136,11 @@ else { // Sent successful + + if ($print_status_to_output) + { + echo $EachSubscriber['email'], ", success\n"; + } } // Send the email to the recipient. If can not send, report it - FINISHED }