public function mailAdmins($config)
    {
        $admins = $this->getService('repos:people.person')
                       ->fetchSet(array(
                           'usertype' => ComPeopleDomainEntityPerson::USERTYPE_SUPER_ADMINISTRATOR
                       ));

        $mails = array();

        foreach($admins as $admin) {
           $mails[] = array(
               'subject' => $config['subject'],
               'template' => $config['template'],
               'to' => $admin->email
           );
        }

        return $this->mail($mails);
    }
public function mailAdmins($config)
    {
        $admins = $this->getService('repos:people.person')
                       ->fetchSet(array(
                           'usertype' => ComPeopleDomainEntityPerson::USERTYPE_SUPER_ADMINISTRATOR
                       ));

        $mails = array();

        foreach($admins as $admin) {
           $mails[] = array(
               'subject' => $config['subject'],
               'template' => $config['template'],
               'to' => $admin->email
           );
        }

        return $this->mail($mails);
    }
public function mailAdmins ( $ config ) { $ admins = $ this -> getService ( 'repos:people.person' ) -> fetchSet ( array ( 'usertype' => ComPeopleDomainEntityPerson :: USERTYPE_SUPER_ADMINISTRATOR ) ) ; $ mails = array ( ) ; foreach ( $ admins as $ admin ) { $ mails [ ] = array ( 'subject' => $ config [ 'subject' ] , 'template' => $ config [ 'template' ] , 'to' => $ admin -> email ) ; } return $ this -> mail ( $ mails ) ; }
Replaces to with the admin emails.

@param array('template' => '...', 'subject' => '...')

@see ComMailerControllerBehaviorMaile::mail
Replaces to with the admin emails .