Flarum\Core\Notification\NotificationSyncer::mailNotifications PHP Method

mailNotifications() protected method

Mail a notification to a list of users.
protected mailNotifications ( Flarum\Core\Notification\MailableInterface $blueprint, array $recipients )
$blueprint Flarum\Core\Notification\MailableInterface
$recipients array
    protected function mailNotifications(MailableInterface $blueprint, array $recipients)
    {
        foreach ($recipients as $user) {
            if ($user->shouldEmail($blueprint::getType())) {
                $this->mailer->send($blueprint, $user);
            }
        }
    }