/**
* On NotImplementedUnsubscribedEvent
*
* @param NotImplementedUnsubscribedEvent $event
*/
public function onNotImplementedUnsubscribedEvent(NotImplementedUnsubscribedEvent $event)
{
// define title
$title = sprintf(Language::lbl('MailTitleUnsubscribeSubscriber'), $event->getUnsubscription()->email, strtoupper($event->getUnsubscription()->language));
// define sender/receiver(s)
$to = $this->modulesSettings->get('Core', 'mailer_to');
$from = $this->modulesSettings->get('Core', 'mailer_from');
$replyTo = $this->modulesSettings->get('Core', 'mailer_reply_to');
// define message
$message = Message::newInstance($title)->setFrom(array($from['email'] => $from['name']))->setTo(array($to['email'] => $to['name']))->setReplyTo(array($replyTo['email'] => $replyTo['name']))->parseHtml(FRONTEND_CORE_PATH . '/Layout/Templates/Mails/Notification.html.twig', array('message' => $title), true);
// send mail
$this->mailer->send($message);
}