PHP Email emails not sent/received by Kanboard

I am not getting any emails from Kanboard, even though if I send a comment or a card by email, Kanboard gives a message saying it was successfully sent.

I have tested that my server will successfully send an email via PHP mail() with a test php script.

Here are my email settings:

I enabled debug mode and the error_log says the email was sent, but it was never received.

I ensured the emails were being sent to a valid Kanboard user.

I checked my Apache error logs and got no email related errors.

any ideas?

Hi Lara, welcome to the forum.

From the PHP docs:

It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.

Maybe you could give more details about your installation.

So after a lot of testing, I discovered that PHP mail fails when there is an invalid email address in the headers. Since I am using PHP 8, and the PHP constant PHP_EOL has changed between php 7.4. and php 8.x., I followed the advice here and it worked!

2 Likes

May I ask what version of Kanboard you have installed, Miss Lara? Because the version of Kanboard I have installed is 1.2.41, and I encountered the same issue as you when using SMTP to send emails.

You can find the details here:

I am using version 1.2.40