Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2022-11-14 20:08:09 +01:00
commit 400546670a
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -597,7 +597,7 @@ class messenger
$this->from = $board_contact; $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 // Build to, cc and bcc strings
$to = $cc = $bcc = ''; $to = $cc = $bcc = '';
@ -629,7 +629,7 @@ class messenger
} }
else else
{ {
$result = phpbb_mail($mail_to, $this->subject, $this->msg, $headers, PHP_EOL, $err_msg); $result = phpbb_mail($mail_to, $this->subject, $this->msg, $headers, $encode_eol, $err_msg);
} }
if (!$result) if (!$result)
@ -950,7 +950,8 @@ class queue
} }
else else
{ {
$result = phpbb_mail($to, $subject, $msg, $headers, PHP_EOL, $err_msg); $encode_eol = $config['smtp_delivery'] || PHP_VERSION_ID >= 80000 ? "\r\n" : PHP_EOL;
$result = phpbb_mail($to, $subject, $msg, $headers, $encode_eol, $err_msg);
} }
if (!$result) if (!$result)