Skip to content
Corex

PublishNotifier

Corex\Newsletter\Subscription\PublishNotifier · class · Add-ons layer

Emails the confirmed, non-suppressed subscribers whose topics intersect a published post’s topics — once each, through the Mailer seam, with a signed unsubscribe token. Returns how many were sent. (Bounded pass; the mail queue is the proper batcher for very large lists — deferred.)

__construct(SubscriberStore $store, Mailer $mailer, SubscriptionService $subscriptions)

Section titled “__construct(SubscriberStore $store, Mailer $mailer, SubscriptionService $subscriptions)”

notify(array $topics, string $title, string $url): int

Section titled “notify(array $topics, string $title, string $url): int”