diff --git a/src/plugin/cursus/Manager/EventManager.php b/src/plugin/cursus/Manager/EventManager.php index 62ab825b403..b8d9f6a9c37 100644 --- a/src/plugin/cursus/Manager/EventManager.php +++ b/src/plugin/cursus/Manager/EventManager.php @@ -221,7 +221,9 @@ public function addGroups(Event $event, array $groups, string $type = AbstractRe } } - $this->sendSessionEventInvitation($event, $users); + if ($event->getRegistrationMail()) { + $this->sendSessionEventInvitation($event, $users); + } $this->om->endFlushSuite();