/**
  * action resendRequestMail
  *
  * @param Model\Project $project
  *
  * @return void
  */
 public function resendRequestMailAction(Model\Project $project)
 {
     if (CoreUtility\GeneralUtility::validEmail($this->settings['administratorEmail'])) {
         /** @var \TYPO3\CMS\Core\Mail\MailMessage $mailToSender */
         $mail = CoreUtility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\MailMessage::class);
         $mail->setContentType('text/html');
         /**
          * Email to receiver (notification mail)
          */
         if ($this->settings['mail']['noReplyEmail'] && CoreUtility\GeneralUtility::validEmail($this->settings['mail']['noReplyEmail'])) {
             $from = [$this->settings['mail']['noReplyEmail'] => ($this->settings['mail']['noReplyName'] ?: $this->settings['mail']['senderName']) . ' - project registration'];
         } else {
             $from = ['*****@*****.**' => 'ecom instruments GmbH - project registration'];
         }
         $mail->setTo([$this->settings['administratorEmail']])->setFrom($from)->setSubject("RE-SUBMIT: " . ($this->settings['mail']['projectRegisteredInfoSubject'] ?: (Lang::translate('mail_project_registered_info_subject', $this->extensionName) ?: 'New project registration submitted')) . ($project->getRegistrant()->getFeUserGroups() && in_array($this->settings['certifiedUsersUserGroup'], $project->getRegistrant()->getFeUserGroups()) ? ' » ' . Lang::translate('user_certified', $this->extensionName) : ' » ' . Lang::translate('user_default', $this->extensionName)) . " #{$project->getUid()}")->setBody($this->getStandAloneTemplate(CoreUtility\ExtensionManagementUtility::siteRelPath(CoreUtility\GeneralUtility::camelCaseToLowerCaseUnderscored($this->extensionName)) . 'Resources/Private/Templates/Email/ProjectRegisteredInfo.html', ['settings' => $this->settings, 'submitted' => new Model\Dto\ProjectPersonsDto($project, $project->getRegistrant(), $project->getEndUser()), 'addressees' => $this->getAddressees(), 'marketingInformation' => []]))->send();
         $this->addFlashMessage("Mail for project #{$project->getUid()} ('{$project->getTitle()}') re-sent.");
     } else {
         $this->addFlashMessage('Invalid mail: ' . $this->settings['administratorEmail'], '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
     }
     $this->internalRedirect('list');
 }