public function sendNotification($notification, $context, $data)
    {
        $users = $notification->getRecipients($context);
        foreach ($users as $user) {
            $this->sendToUser($notification, $context, $user, $data);
        }
    }
public function sendNotification($notification, $context, $data)
    {
        $users = $notification->getRecipients($context);
        foreach ($users as $user) {
            $this->sendToUser($notification, $context, $user, $data);
        }
    }
public function sendNotification ( $ notification , $ context , $ data ) { $ users = $ notification -> getRecipients ( $ context ) ; foreach ( $ users as $ user ) { $ this -> sendToUser ( $ notification , $ context , $ user , $ data ) ; } }
Send a notification via email to the selected users

@param SystemNotification           $notification
@param \SilverStripe\ORM\DataObject $context
@param array                        $data
Send a notification via email to the selected users