protected function sendEmailNotification($subject, $message)
    {
        $superUsers = UsersManagerApi::getInstance()->getUsersHavingSuperUserAccess();

        foreach ($superUsers as $superUser) {
            $mail = new Mail();
            $mail->setDefaultFromPiwik();
            $mail->addTo($superUser['email']);
            $mail->setSubject($subject);
            $mail->setWrappedHtmlBody($message);
            $mail->send();
        }
    }
protected function sendEmailNotification($subject, $message)
    {
        $superUsers = UsersManagerApi::getInstance()->getUsersHavingSuperUserAccess();

        foreach ($superUsers as $superUser) {
            $mail = new Mail();
            $mail->setDefaultFromPiwik();
            $mail->addTo($superUser['email']);
            $mail->setSubject($subject);
            $mail->setWrappedHtmlBody($message);
            $mail->send();
        }
    }
protected function sendEmailNotification ( $ subject , $ message ) { $ superUsers = UsersManagerApi :: getInstance ( ) -> getUsersHavingSuperUserAccess ( ) ; foreach ( $ superUsers as $ superUser ) { $ mail = new Mail ( ) ; $ mail -> setDefaultFromPiwik ( ) ; $ mail -> addTo ( $ superUser [ 'email' ] ) ; $ mail -> setSubject ( $ subject ) ; $ mail -> setWrappedHtmlBody ( $ message ) ; $ mail -> send ( ) ; } }
Send an email notification to all super users.

@param $subject
@param $message
Send an email notification to all super users .