public function emailCheck(Request $request)
    {
        $options = [
            'user' => $this->app['users']->getCurrentUser(),
            'host' => $request->getHost(),
            'ip'   => $request->getClientIp(),
        ];

        $results = $this->getCheck('EmailSetup')
            ->setOptions($options)
            ->runCheck()
        ;

        return $this->json($results);
    }
public function emailCheck(Request $request)
    {
        $options = [
            'user' => $this->app['users']->getCurrentUser(),
            'host' => $request->getHost(),
            'ip'   => $request->getClientIp(),
        ];

        $results = $this->getCheck('EmailSetup')
            ->setOptions($options)
            ->runCheck()
        ;

        return $this->json($results);
    }
public function emailCheck ( Request $ request ) { $ options = [ 'user' => $ this -> app [ 'users' ] -> getCurrentUser ( ) , 'host' => $ request -> getHost ( ) , 'ip' => $ request -> getClientIp ( ) , ] ; $ results = $ this -> getCheck ( 'EmailSetup' ) -> setOptions ( $ options ) -> runCheck ( ) ; return $ this -> json ( $ results ) ; }
Send an e-mail ping test.

@param Request $request

@return Response
Send an e - mail ping test .