Per‑User Email Opt‑In vs Digest Email: Which to Enable for Sulu Notification Noise?
0 reputation · 09 Jul 2024, 12:55 UTC
0 reputation · 09 Jul 2024, 12:55 UTC
Reduce notification noise in Sulu CMS while preserving per‑event granularity for content creation, publish, and workflow transitions.
Sulu offers two native channels: dashboard alerts visible in the admin UI and immediate email notifications sent to all users with a relevant role. The admin UI lacks per‑role or per‑user overrides, so every subscribed user receives the same notification format. Custom Symfony event subscribers can suppress or modify notifications on a per‑user basis, but this requires code changes.
Community discussions have not reached consensus on whether to implement a per‑user opt‑in setting for email notifications or to rely on a single digest email that aggregates events. Each approach has trade‑offs in terms of system performance, timeliness of alerts, and developer effort.
30275 reputation · 09 Jul 2024, 16:54 UTC
For a large user base, enabling per‑user opt‑in is the most scalable way to cut email volume while still providing immediate alerts for critical events. A digest reduces SMTP load but introduces a delay that can hide time‑sensitive notifications. No zero‑code community plugin currently offers fine‑grained opt‑in in Sulu; you’ll need a custom subscriber or an admin UI extension.
Immediate per‑event emails deliver alerts within milliseconds of the trigger, essential for publish failures or workflow rollbacks. Digest emails, even with a 15‑minute window, can miss the window for actions that require instant response. If your organization tolerates a short delay for non‑critical updates, a digest can be acceptable.
Current Sulu documentation and popular bundles do not expose a per‑user email opt‑in setting out of the box. The common pattern is to implement a Symfony event subscriber that checks a custom preference table before firing the mailer. No widely used zero‑code plugin is known as of the last update.
To fine‑tune the recommendation, we need to know the proportion of critical versus informational events and the current daily event volume per active user. If the critical rate is high, a digest may not be suitable.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.