From e5f635d4b1a39bacce75d3e901bd09ec5fff8554 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 31 Mar 2021 19:21:50 +0200 Subject: [PATCH] update mail notifications --- src/Controller/ContactController.php | 1 + src/EventSuscriber/Blog/CommentEventSubscriber.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Controller/ContactController.php b/src/Controller/ContactController.php index d39b2d3..1fa5fba 100644 --- a/src/Controller/ContactController.php +++ b/src/Controller/ContactController.php @@ -23,6 +23,7 @@ class ContactController extends PageController $data = $form->getData(); $notifier + ->setFrom('subscription@deblan.fr') ->addRecipient('simon@deblan.fr') ->setSubject('[Deblan] Nouveau message') ->setReplyTo($data['email']) diff --git a/src/EventSuscriber/Blog/CommentEventSubscriber.php b/src/EventSuscriber/Blog/CommentEventSubscriber.php index 5292287..af8484b 100644 --- a/src/EventSuscriber/Blog/CommentEventSubscriber.php +++ b/src/EventSuscriber/Blog/CommentEventSubscriber.php @@ -38,6 +38,7 @@ class CommentEventSubscriber extends EntityManagerEventSubscriber $this->notifier ->init() + ->setFrom('subscription@deblan.fr') ->addRecipient('simon@deblan.fr') ->setSubject('[Deblan] Nouveau commentaire') ->notify('mail/comment.html.twig', [