From: Stéphane Jacob Date: Wed, 11 Aug 2010 06:45:07 +0000 (+0200) Subject: Might fix notification mail on name change. X-Git-Tag: xorg/1.0.1~15^2~24 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0aaf1f0671cb0ce8cafac6b1634290323ed4c9b4;p=platal.git Might fix notification mail on name change. Signed-off-by: Stéphane Jacob --- diff --git a/include/validations.inc.php b/include/validations.inc.php index dcc4b63..79532e2 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -529,9 +529,9 @@ abstract class ProfileValidate extends Validate $mailer = new PlMailer(); $mailer->setSubject($this->_mail_subj()); $mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}"); - $mailer->addTo("\"{$this->profile->fullName()}\" <{$this->profileOwner->bestEmail()}>"); + $mailer->addTo("\"{$this->profile->fullName()}\" <{$this->profileOwner->forlifeEmail()}>"); if (!$this->userIsProfileOwner) { - $mailer->addCc("\"{$this->user->fullName()}\" <{$this->user->bestEmail()}>"); + $mailer->addCc("\"{$this->user->fullName()}\" <{$this->user->forlifeEmail()}>"); } $mailer->addCc("validation+{$this->type}@{$globals->mail->domain}");