Exemple #1
0
 /**
  * Sending the confirmation mail
  * 
  * reason 1: first registration
  * reason 2: resending registration
  * 
  * @param mixed $email
  * @param mixed $email_hash
  * @param mixed $reason
  */
 function sendConfirmationnMail($email, $reason = 1)
 {
     $confirm_hash = $this->getConfirmationHash($email);
     require_once "mailer.class.php";
     $mailer = new mailer();
     //SEND CONFIRMATION EMAIL
     $confirmation_mail = $email . ",<BR><BR>Bedankt voor je registratie op www.innovenio.nl.<BR>Klik op de onderstaande link om je registratie te voltooien :<BR><BR>" . Setting::baseUrl . "/users/activate_account.php?confirmHash=" . $confirm_hash . "<BR><BR>Met vriendelijke groet,<BR><BR>Innovenio.nl";
     $mailer->send_mail($email, "Registration Innovenio", $confirmation_mail);
     if ($reason == 1) {
         $this->notificationClass->add_note("<h1>Bericht verzonden</h1>Bedankt voor het registreren, ter bevestiging is er een email gestuurd met daarin de laatste stap voor de registratie.");
     } elseif ($reason == 2) {
         $this->notificationClass->add_note("<h1>Bericht verzonden</h1>Er is een email verzonden met daarin de laatste stap voor de registratie.");
     }
 }