From fa509401cccd2047f26d243135b19c70273ad457 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 24 Oct 2017 17:08:17 +0200 Subject: [PATCH] Fix headers for init mail --- htdocs/compte.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/compte.php b/htdocs/compte.php index 803950c..d337b33 100644 --- a/htdocs/compte.php +++ b/htdocs/compte.php @@ -757,7 +757,10 @@ if (isset($_SESSION['login'])) // script creation systeme unix_add($uid,getgid($_SESSION['domain'])); } else { - mail($uid, 'Premier message',"Mail d'initialisation du compte."); + $headers = 'From: postmaster@'.$_SESSION['domain']. "\r\n" . + 'Reply-To: postmaster@'.$_SESSION['domain']. "\r\n" . + 'X-Mailer: PHP/' . phpversion(); + mail($uid, 'Bienvenue', "Mail d'initialisation du compte.", $headers); } print "
Ajout effectué.
";