When people are using the contact form, there is an error in the mail generation.
So if a user submit's the form, the From address will be the user his email address he enters. However this mail is then blocked, since I'm not allowed to send mail with a From record <[email protected]>. I'm only allowed to send mail for the domains I own (SPF /DKIM etc), and I don't own gmail.com
So I suggest that the code is updated so that:
The from address is my own "webmaster" mail address and that a new line is added with "reply-to" which is the actual user address
So if a user submit's the form, the From address will be the user his email address he enters. However this mail is then blocked, since I'm not allowed to send mail with a From record <[email protected]>. I'm only allowed to send mail for the domains I own (SPF /DKIM etc), and I don't own gmail.com

Code:
Received: from php7 (php7 [172.16.15.24]) by duikforum.nl (Postfix) with SMTP id EAE1911745 for <[email protected]>; Thu, 5 Nov 2020 14:19:03 +0100 (CET) Received: by php7 (sSMTP sendmail emulation); Thu, 05 Nov 2020 14:19:03 +0100 Date: Thu, 05 Nov 2020 14:19:03 +0100 To: [email protected] Subject: DuikForum Neem contact op Formulier - Registratie problemen X-PHP-Originating-Script: 80:mail.php From: "[email protected]" <[email protected]> Sender: [email protected] Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Het volgende bericht werd via het DuikForum contact formulier aan u verzonden door M.C. (mailto: [email protected]). -------------------------------- Hoe wordt je lid van duikforum? -------------------------------- IP-adres: 1.1.1.1 Gebruikersnaam: Gast User ID: 0 E-mail: [email protected]
The from address is my own "webmaster" mail address and that a new line is added with "reply-to" which is the actual user address
Comment