2015-03-02, 07:49 PM
Hi!
We are using the mail()-function to inform about new PNs, etc. Somewhen it stopped working. I had the feeling it stopped with the update to 1.8.4 but the logs are talking about errors since 02.03.2015. But I found mails with the date 12.02.2015, so it is really strange and we don't know exactly when the problem started.
The error log says: "MyBB was unable to send the email using the PHP mail() function."
We tried a simple php-file:
Worked great.
Worked great too.
We opened the file inc/mailhandlers/php.php and replaced
with
Still the same error.
We have tried the update of the forum on another server with the same database, addons, etc. and mails work on this dev-forum. Both Server are paid quality servers, no strange free hosting. Both Server are running with php 5.4.38.
And now we're running out of ideas. Could somebody help us?
Thank you!
We are using the mail()-function to inform about new PNs, etc. Somewhen it stopped working. I had the feeling it stopped with the update to 1.8.4 but the logs are talking about errors since 02.03.2015. But I found mails with the date 12.02.2015, so it is really strange and we don't know exactly when the problem started.
The error log says: "MyBB was unable to send the email using the PHP mail() function."
We tried a simple php-file:
<?php
mail("[email protected]", "Testmail", "This is a test");
?>
Worked great.
<?php
mail("[email protected]", "Testmail", "This is a test", "[email protected]");
?>
Worked great too.
We opened the file inc/mailhandlers/php.php and replaced
$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);
with
$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));
Still the same error.
We have tried the update of the forum on another server with the same database, addons, etc. and mails work on this dev-forum. Both Server are paid quality servers, no strange free hosting. Both Server are running with php 5.4.38.
And now we're running out of ideas. Could somebody help us?
Thank you!