/**
  * Check View Backend
  *
  * @param string $email email address
  * @return void
  */
 public function checkBeAction($email = null)
 {
     $this->view->assign('pid', $this->id);
     if (GeneralUtility::validEmail($email)) {
         $body = 'New <b>Test Email</b> from User ' . BackendUtility::getPropertyFromBackendUser('username') . ' (' . GeneralUtility::getIndpEnv('HTTP_HOST') . ')';
         $senderEmail = '*****@*****.**';
         if (GeneralUtility::validEmail(ConfigurationUtility::getDefaultMailFromAddress())) {
             $senderEmail = ConfigurationUtility::getDefaultMailFromAddress();
         }
         $this->view->assignMultiple(['issent' => MailUtility::sendPlainMail($email, $senderEmail, 'New Powermail Test Email', $body), 'email' => $email]);
     }
 }
 /**
  * Send spam notification mail to admin
  *
  * @param Mail $mail
  * @return void
  */
 protected function sendSpamNotificationMail(Mail $mail)
 {
     if (!GeneralUtility::validEmail($this->settings['spamshield.']['email'])) {
         return;
     }
     MailUtility::sendPlainMail($this->settings['spamshield.']['email'], 'powermail@' . GeneralUtility::getIndpEnv('TYPO3_HOST_ONLY'), $this->settings['spamshield.']['emailSubject'], $this->createSpamNotificationMessage($this->settings['spamshield.']['emailTemplate'], $this->getVariablesForSpamNotification($mail)));
 }