/**
  * @param \CIC\Cicregister\Domain\Model\FrontendUser $frontendUser
  * @param array $conf
  * @return string
  */
 public function execute(\CIC\Cicregister\Domain\Model\FrontendUser $frontendUser, array $conf)
 {
     $recipients = array($frontendUser->getEmail() => $frontendUser->getName());
     $sender = array($conf['senderEmail'] => $conf['senderName']);
     $subject = $conf['validateSubject'];
     $templateName = 'ForgotPassword.html';
     $variables = $conf['variables'];
     $variables['frontendUser'] = $frontendUser;
     $variables['validationKey'] = $this->emailValidator->generateKey($frontendUser);
     $this->sendTemplateEmail($recipients, $sender, $subject, $templateName, $variables);
 }
 /**
  * @param \CIC\Cicregister\Domain\Model\FrontendUser $frontendUser
  * @param array $conf
  * @return string
  */
 public function execute(\CIC\Cicregister\Domain\Model\FrontendUser $frontendUser, array $conf)
 {
     $recipients = array($frontendUser->getEmail() => $frontendUser->getName());
     $sender = array($conf['senderEmail'] => $conf['senderName']);
     $subject = $conf['validateSubject'];
     $templateName = 'ValidateEmail.html';
     $variables = $conf['variables'];
     $variables['frontendUser'] = $frontendUser;
     $variables['validationKey'] = $this->emailValidator->generateKey($frontendUser);
     $this->sendTemplateEmail($recipients, $sender, $subject, $templateName, $variables);
     $response = $this->objectManager->create('CIC\\Cicregister\\Behaviors\\Response\\RenderAction');
     $response->setValue('createConfirmationMustValidate');
     return $response;
 }