update mail notifications

This commit is contained in:
Simon Vieille 2021-03-31 19:21:50 +02:00
parent 86e054a74a
commit e5f635d4b1
2 changed files with 2 additions and 0 deletions

View file

@ -23,6 +23,7 @@ class ContactController extends PageController
$data = $form->getData(); $data = $form->getData();
$notifier $notifier
->setFrom('subscription@deblan.fr')
->addRecipient('simon@deblan.fr') ->addRecipient('simon@deblan.fr')
->setSubject('[Deblan] Nouveau message') ->setSubject('[Deblan] Nouveau message')
->setReplyTo($data['email']) ->setReplyTo($data['email'])

View file

@ -38,6 +38,7 @@ class CommentEventSubscriber extends EntityManagerEventSubscriber
$this->notifier $this->notifier
->init() ->init()
->setFrom('subscription@deblan.fr')
->addRecipient('simon@deblan.fr') ->addRecipient('simon@deblan.fr')
->setSubject('[Deblan] Nouveau commentaire') ->setSubject('[Deblan] Nouveau commentaire')
->notify('mail/comment.html.twig', [ ->notify('mail/comment.html.twig', [