Revert "Might fix notification mail on name change.": Not a fix.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 11 Aug 2010 09:45:23 +0000 (11:45 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 11 Aug 2010 09:45:23 +0000 (11:45 +0200)
This reverts commit 0aaf1f0671cb0ce8cafac6b1634290323ed4c9b4.

include/validations.inc.php

index 79532e2..dcc4b63 100644 (file)
@@ -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}");