From bdccfd95becaef29bc29df444940afd463d76726 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Tue, 25 Jul 2006 19:22:29 +0000 Subject: [PATCH] #426 : add an identification header in xnet mails too git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@654 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 3 +++ include/xnet/mail.inc.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index f7e533a..cdb8311 100644 --- 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: diff --git a/include/xnet/mail.inc.php b/include/xnet/mail.inc.php index 5f665e5..ec86c95 100644 --- a/include/xnet/mail.inc.php +++ b/include/xnet/mail.inc.php @@ -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; -- 2.1.4