diff --git a/scripts/jobs/cron_usage_report.php b/scripts/jobs/cron_usage_report.php index 51a20e48..0d2acbda 100644 --- a/scripts/jobs/cron_usage_report.php +++ b/scripts/jobs/cron_usage_report.php @@ -101,8 +101,8 @@ while($row = $db->fetch_array($result)) if($_mailerror) { - $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Error sending mail: ' . $_mailerror); - standard_error('errorsendingmail', $row['email']); + $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Error sending mail: ' . $mailerr_msg); + echo 'Error sending mail: ' . $mailerr_msg . "\n"; } $mail->ClearAddresses(); @@ -182,7 +182,7 @@ while($row = $db->fetch_array($result)) if ($_mailerror) { $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); - standard_error('errorsendingmail', $row["email"]); + echo "Error sending mail: " . $mailerr_msg . "\n"; } $mail->ClearAddresses(); @@ -231,7 +231,7 @@ while($row = $db->fetch_array($result)) if ($_mailerror) { $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Error sending mail: ' . $mailerr_msg); - standard_error('errorsendingmail', $row['email']); + echo 'Error sending mail: ' . $mailerr_msg . "\n"; } $mail->ClearAddresses();