I recently upgraded my Debian server from Debian 8 to Debian 10.Since then my PHP form does not send any emails anymore.Before the upgrade everything was running fine.Here is the code of my mail.php:
<?php$title = $_POST["title"];$firstname = $_POST["firstname"];$lastname = $_POST["lastname"];$company = $_POST["company"];$email = $_POST["email"];$subject = $_POST["subject"];$message = $_POST["message"];$formcontent = "Anrede: $title\nName: $firstname $lastname\nFirma: $company\n\n$message";$recipient = "grabenkind@gmail.com";$subject = "$subject";$mailheader = "From: $email";mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");header('Location: /index.html');?>
I know that the form is not yet secured, it only served as a test.
In the HTML document everything is as it was.As I said before, before the upgrade to Debian 10 everything was still working.The files are the same.
I already checked by True and False if the email is "sent" and the value was True.I know that it still doesn't mean that the email was really sent, but I thought I should mention it.
Thanks a lot for your help!