From: Vincent Zanotti Date: Sat, 23 Aug 2008 15:42:19 +0000 (+0200) Subject: Updates class PlMailer to use the new User object. X-Git-Tag: core/1.0.0~28 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4d19f60bf464fe76ca5a371976a9e7fb681ad098;p=platal.git Updates class PlMailer to use the new User object. Signed-off-by: Vincent Zanotti --- diff --git a/classes/plmailer.php b/classes/plmailer.php index 2106d50..95e5a5c 100644 --- a/classes/plmailer.php +++ b/classes/plmailer.php @@ -295,7 +295,10 @@ class PlMailer extends Mail_Mime { public function send($with_html = true) { $this->processPage($with_html); - if (S::v('forlife')) { + if (S::user()) { + $this->addHeader('X-Org-Mail', S::user()->forlifeEmail()); + } else if (S::v('forlife')) { + // TODO(vzanotti): trash this code when hruid will be part of master. global $globals; $this->addHeader('X-Org-Mail', S::v('forlife') . '@' . $globals->mail->domain); }