1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-17 15:11:40 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander
2022-11-14 20:08:09 +01:00

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)