private function checkMail()
    {
        $this->configureMail();

        try {
            $this->sendMail();

            $result = $this->makeHealthyResult();
        } catch (\Exception $exception) {
            report($exception);

            $result = $this->makeResultFromException($exception);
        }

        $this->restoreMailConfiguration();

        return $result;
    }
private function checkMail()
    {
        $this->configureMail();

        try {
            $this->sendMail();

            $result = $this->makeHealthyResult();
        } catch (\Exception $exception) {
            report($exception);

            $result = $this->makeResultFromException($exception);
        }

        $this->restoreMailConfiguration();

        return $result;
    }
private function checkMail ( ) { $ this -> configureMail ( ) ; try { $ this -> sendMail ( ) ; $ result = $ this -> makeHealthyResult ( ) ; } catch ( \ Exception $ exception ) { report ( $ exception ) ; $ result = $ this -> makeResultFromException ( $ exception ) ; } $ this -> restoreMailConfiguration ( ) ; return $ result ; }
Send a test e-mail.
Send a test e - mail .