예제 #1
0
 /**
  * Send a confirmation email for the user to validate their email address.
  */
 public function sendConfirmationEmail()
 {
     if (static::requiresConfirmation() && ($confirmation_message = Configuration::get('mailer.confirm_message'))) {
         $mailer = new Mailer();
         $url = Configuration::get('web_root') . '/user?action=confirm&u=' . $this->getEncryptedUserReference();
         $mailer->setCustomVariable('SUBSCRIPTION_CONFIRMATION_LINK', $url);
         $mailer->sendOne($confirmation_message, $this);
     }
 }