#426 : add an identification header in xnet mails too
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 25 Jul 2006 19:22:29 +0000 (19:22 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 25 Jul 2006 19:22:29 +0000 (19:22 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@654 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
include/xnet/mail.inc.php

index f7e533a..cdb8311 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -76,6 +76,9 @@ Bug/Wish:
     * Emails:
         - #426: Add an identification header in mails                      -FRU
 
+    * Xnet:
+        - #426: Add an identification header in mails                      -FRU
+
 From 0.9.10 Branch:
 
     * Profile:
index 5f665e5..ec86c95 100644 (file)
@@ -99,11 +99,13 @@ function _send_xnet_mail($user, $body, $mailer, $replyto = null)
 
 function send_xnet_mails($from, $sujet, $body, $tos, $replyto = null)
 {
+    global $globals;
     $sent = array();
 
     $mailer = new HermesMailer();
     $mailer->setSubject($sujet);
     $mailer->setFrom($from);
+    $mailer->addHeader('X-Xorg-Login', S::v('bestalias') . '@' . $globals->mail->domain);
 
     foreach ($tos as $user) {
         if ($sent[$user['email']]) continue;