diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 749a8798e3..894f2cf2e7 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -597,7 +597,7 @@ class messenger $this->from = $board_contact; } - $encode_eol = ($config['smtp_delivery']) ? "\r\n" : PHP_EOL; + $encode_eol = $config['smtp_delivery'] || PHP_VERSION_ID >= 80000 ? "\r\n" : PHP_EOL; // Build to, cc and bcc strings $to = $cc = $bcc = '';