Might fix notification mail on name change.
authorStéphane Jacob <sj@m4x.org>
Wed, 11 Aug 2010 06:45:07 +0000 (08:45 +0200)
committerStéphane Jacob <sj@m4x.org>
Wed, 11 Aug 2010 06:45:07 +0000 (08:45 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations.inc.php

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