Skip to content
Snippets Groups Projects

Issue #3362297 New Queue Worker to send Email Notifications

Files
5
@@ -154,6 +154,7 @@ function recurring_events_reminders_cron() {
$registration_creation_service->setEventInstance($instance);
$registrants = $registration_creation_service->retrieveRegisteredParties();
if (empty($registrants)) {
return;
}
@@ -162,7 +163,8 @@ function recurring_events_reminders_cron() {
// Send an email to all registrants.
foreach ($registrants as $registrant) {
recurring_events_registration_send_notification($key, $registrant);
// Add each notification to be sent to the queue.
\Drupal::service('recurring_events_registration.notification_service')->addEmailNotificationToQueue($key, $registrant);
}
}
}
Loading