mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
400546670a
1 changed files with 4 additions and 3 deletions
|
@ -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 = '';
|
||||
|
@ -629,7 +629,7 @@ class messenger
|
|||
}
|
||||
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)
|
||||
|
@ -950,7 +950,8 @@ class queue
|
|||
}
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue