private function sendNotificationEmail(NotificationInterface $notification) { if (null === $notification->getMailTemplate()) { $notification->setMailTemplate($this->notificationHandler->getEmailHtml($notification)); } $this->mailer->sendEmailBasedOnNotification($notification->getId(), $notification->getCategory()->getMailSenderAddress(), $notification->getPerson()->getEmail(), $notification->getTitle(), $notification->getMailTemplate()); }