From: Raphaƫl Barrois Date: Wed, 11 Aug 2010 09:45:23 +0000 (+0200) Subject: Revert "Might fix notification mail on name change.": Not a fix. X-Git-Tag: xorg/1.0.1~15^2~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3c8c0f6467b4a9e333e3cd85d60d056162f741ed;p=platal.git Revert "Might fix notification mail on name change.": Not a fix. This reverts commit 0aaf1f0671cb0ce8cafac6b1634290323ed4c9b4. --- diff --git a/include/validations.inc.php b/include/validations.inc.php index 79532e2..dcc4b63 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->forlifeEmail()}>"); + $mailer->addTo("\"{$this->profile->fullName()}\" <{$this->profileOwner->bestEmail()}>"); if (!$this->userIsProfileOwner) { - $mailer->addCc("\"{$this->user->fullName()}\" <{$this->user->forlifeEmail()}>"); + $mailer->addCc("\"{$this->user->fullName()}\" <{$this->user->bestEmail()}>"); } $mailer->addCc("validation+{$this->type}@{$globals->mail->domain}");