Skip to content
Corex

NotificationChannelPolicy

Corex\Notifications\NotificationChannelPolicy · interface · Core layer

Decides whether a notification may be delivered over the email channel, and is the guard against the failure→email→failure loop (spec 072 FR-021): a notification in the email category, or one whose source is a mail failure, is never emailed. It also enforces a per-window send cap so a storm of notifications cannot become a storm of emails.

mayEmail(Notification $notification): bool

Section titled “mayEmail(Notification $notification): bool”

In-app is always allowed; this governs the optional email channel only.