
Originally Posted by
johnniejetski2
log files show this:
[29-Aug-2024 01:58:09 UTC] PHP Notice: Email Error: Could not instantiate mail function.
in /home/bladez5/monstergoped.com/includes/functions/functions_email.php on line 511
[29-Aug-2024 01:58:09 UTC] PHP Notice: Email Error: Could not instantiate mail function.
in /home/bladez5/monstergoped.com/includes/functions/functions_email.php on line 511
that part of that file looks like this starting at 506
//
if ($ErrorInfo !== '') {
$mail_langs = $mail->getTranslations();
if (strpos($ErrorInfo, $mail_langs['recipients_failed']) === false) {
// Don't log SMTP rejected spam; log others
if (!str_contains($ErrorInfo, 'spam content')) {
trigger_error('Email Error: ' . $ErrorInfo);
}
} else {
$log_prefix = (IS_ADMIN_FLAG === true) ? '/myDEBUG-bounced-email-adm-' : '/myDEBUG-bounced-email-';
$log_date = new DateTime();
error_log('Request URI: ' . $_SERVER['REQUEST_URI'] . PHP_EOL . PHP_EOL . $ErrorInfo, 3, DIR_FS_LOGS . $log_prefix . $log_date->format('Ymd-His-u') . '.log');