mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15322] Fix bug wrong return in emails
PHPBB3-15322
This commit is contained in:
parent
2643e851f2
commit
b4ca1bdb00
1 changed files with 1 additions and 1 deletions
|
@ -1839,7 +1839,7 @@ function phpbb_mail($to, $subject, $msg, $headers, $eol, &$err_msg)
|
||||||
// On some PHP Versions mail() *may* fail if there are newlines within the subject.
|
// On some PHP Versions mail() *may* fail if there are newlines within the subject.
|
||||||
// Newlines are used as a delimiter for lines in mail_encode() according to RFC 2045 section 6.8.
|
// Newlines are used as a delimiter for lines in mail_encode() according to RFC 2045 section 6.8.
|
||||||
// Because PHP can't decide what is wanted we revert back to the non-RFC-compliant way of separating by one space (Use '' as parameter to mail_encode() results in SPACE used)
|
// Because PHP can't decide what is wanted we revert back to the non-RFC-compliant way of separating by one space (Use '' as parameter to mail_encode() results in SPACE used)
|
||||||
$result = $config['email_function_name']($to, mail_encode($subject, ''), wordwrap(utf8_wordwrap($msg), 997, "\n", true), $headers);
|
$result = $config['email_function_name']($to, mail_encode($subject, ''), wordwrap(utf8_wordwrap($msg), 997, "\n", true), $headers, "-f" . $config['board_email']);
|
||||||
|
|
||||||
$collector->uninstall();
|
$collector->uninstall();
|
||||||
$err_msg = $collector->format_errors();
|
$err_msg = $collector->format_errors();
|
||||||
|
|
Loading…
Add table
Reference in a new issue