-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eMail issues with PHP mail()... #4734
Comments
Looks like it was supposed to address some specific 3rd party problems: Line 38 in d84d4df
Possibly related: php/php-src#8086 |
If we refer to the PHP Mail() function description it seem preferable to use an Array for data transfer instead of not knowing if it is a CRLF or a LF that should be used in the user hosting environment? Hoping that PHP would format the mail properly with the Array...
|
Yes, one solution may be to split the final string with the used delimiter to pass an array on PHP >= 7.2.0 (when |
Because I did not receive any response on the MyBB Community website for 4 days, I am posting the bug here!
MyBB Version 1.8.34
PHP Version 8.0.29
SQL Engine MySQLi 8.0.33
This is a plain english default installation without any plugins.
I was able to find why no email was able to be sent from anywhere in the MyBB forum.
Inside the file "/inc/mailhandlers/php.php" there is 2 lines causing the problem. The headers lines are not separated with CRLF (\r\n), and because the mailhandler delimiter is changed in the code blocking also the mass mail.
PHP ask for a CRLF (\r\n) separator between headers lines...
This is the section where the headers and delimiter are wrongly changed in the file "/inc/mailhandlers/php.php" :
Without the commented lines, this is causing the PHP mail() silent error!
The text was updated successfully, but these errors were encountered: