Mail function and php version

I found out that some header entries (Date:, From:, Reply-To:, MIME-Version:, Content-Type:, Content-Transfer-Encoding:) have a space character at the first column and this cause the problem.

To: "forname surname " <mailaddress>
Subject: TEST
Message-ID: <messageID>
:warning:Date: Fri, 09 Sep 2022 12:15:57 +0200
:warning:From: via Kanboard <mailaddress>
:warning:Reply-To: user@domain.tld
:warning:MIME-Version: 1.0
:warning:Content-Type: text/html; charset=utf-8
:warning:Content-Transfer-Encoding: quoted-printable
Auto-Submitted: auto-generated
From: noreply@domain.tld
Date: Fri, 09 Sep 2022 12:15:57 +0200

Where is the header generated?

1 Like