diff --git a/src/Bundle/ChillMainBundle/Notification/Email/NotificationMailer.php b/src/Bundle/ChillMainBundle/Notification/Email/NotificationMailer.php index e04a96af0..ce5587ed9 100644 --- a/src/Bundle/ChillMainBundle/Notification/Email/NotificationMailer.php +++ b/src/Bundle/ChillMainBundle/Notification/Email/NotificationMailer.php @@ -79,11 +79,8 @@ class NotificationMailer continue; } - $email = new Email(); - $email - ->subject($notification->getTitle()); - if ($notification->isSystem()) { + $email = new Email(); $email ->text($notification->getMessage()); } else { @@ -96,7 +93,9 @@ class NotificationMailer ]); } - $email->to($addressee->getEmail()); + $email + ->subject($notification->getTitle()) + ->to($addressee->getEmail()); try { $this->mailer->send($email);