public function find()
    {
        foreach ($this->getSupportedMailers() as $mailer) {
            $class = Helper::getMailerClassName($mailer);
            if (class_exists($class)) {
                $this->register($mailer);
            }
        }

        ksort($this->mailers);

        return $this->all();
    }
public function find()
    {
        foreach ($this->getSupportedMailers() as $mailer) {
            $class = Helper::getMailerClassName($mailer);
            if (class_exists($class)) {
                $this->register($mailer);
            }
        }

        ksort($this->mailers);

        return $this->all();
    }
public function find ( ) { foreach ( $ this -> getSupportedMailers ( ) as $ mailer ) { $ class = Helper :: getMailerClassName ( $ mailer ) ; if ( class_exists ( $ class ) ) { $ this -> register ( $ mailer ) ; } } ksort ( $ this -> mailers ) ; return $ this -> all ( ) ; }
Automatically find and register all officially supported mailers

@return array An array of mailer names
Automatically find and register all officially supported mailers