Fix #425: Add a header with the user login in mails sent from the site
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 23 Jul 2006 13:29:47 +0000 (13:29 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 23 Jul 2006 13:29:47 +0000 (13:29 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@591 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
modules/email.php

index e309675..6e9e30b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,9 @@ Bug/Wish:
     * Carnet:
         - #435: Calendar contains yearly events for all the contacts       -FRU
 
+    * Emails:
+        - #426: Add an identification header in mails                      -FRU
+
 ================================================================================
 VERSION 0.9.10                                                      29 Juin 2006
 
index 22abcf5..1113aa4 100644 (file)
@@ -272,6 +272,7 @@ class EmailModule extends PLModule
                 if (!empty($cc))  { $mymail->addCc($cc); }
                 if (!empty($bcc)) { $mymail->addBcc($bcc); }
                 if (!empty($to2)) { $mymail->addTo($to2); }
+                $mymail->addHeader('X-XOrg-Login', S::v('bestalias') . '@' . $globals->mail->domain);
                 $mymail->setTxtBody(wordwrap($txt,72,"\n"));
                 if ($mymail->send()) {
                     $page->trig("Ton mail a bien été envoyé.");