Explorar o código

Attempt to fixed notifications

boutils %!s(int64=9) %!d(string=hai) anos
pai
achega
6901e74666
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      ajax/datastores.php

+ 4 - 1
ajax/datastores.php

@@ -43,7 +43,10 @@ if(isset($_POST['mail'])) {
   $email = 'ftth@manchenumerique.fr';
   $bcc   = 'ftth@manchenumerique.fr';
 
-  $headers  = 'MIME-Version: 1.0' . "\r\n";
+  $headers  = "";
+  $headers .= "From: Manche Numerique <".$email."> \r\n";
+  $headers .= "Reply-To:" . $email . "\r\n" ."X-Mailer: PHP/" . phpversion();
+  $headers .= 'MIME-Version: 1.0' . "\r\n";
   $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
   $headers .= 'Bcc: '.$bcc."\r\n";