public function catchAll() {

        $isCatchallDomain = null;
        if($this->options['catchAllEnabled']){
            try{
                $isCatchallDomain = $this->transport->getSmtp()->acceptsAnyRecipient($this->dom);

            }catch (\Exception $e) {
                $this->statusManager->setStatus($this->users, $this->dom, $this->options['catchAllIsValid'], 'error while on CatchAll test: '.$e );
            }

            // if a catchall domain is detected, and we consider
            // accounts on such domains as invalid, mark all the
            // users as invalid and move on
            if ($isCatchallDomain) {
                if (!$this->options['catchAllIsValid']) {
                    $this->statusManager->setStatus($this->users, $this->dom, $this->options['catchAllIsValid'],'catch all detected');
                    return true;
                }
            }
        }
    }
public function catchAll() {

        $isCatchallDomain = null;
        if($this->options['catchAllEnabled']){
            try{
                $isCatchallDomain = $this->transport->getSmtp()->acceptsAnyRecipient($this->dom);

            }catch (\Exception $e) {
                $this->statusManager->setStatus($this->users, $this->dom, $this->options['catchAllIsValid'], 'error while on CatchAll test: '.$e );
            }

            // if a catchall domain is detected, and we consider
            // accounts on such domains as invalid, mark all the
            // users as invalid and move on
            if ($isCatchallDomain) {
                if (!$this->options['catchAllIsValid']) {
                    $this->statusManager->setStatus($this->users, $this->dom, $this->options['catchAllIsValid'],'catch all detected');
                    return true;
                }
            }
        }
    }
public function catchAll ( ) { $ isCatchallDomain = null ; if ( $ this -> options [ 'catchAllEnabled' ] ) { try { $ isCatchallDomain = $ this -> transport -> getSmtp ( ) -> acceptsAnyRecipient ( $ this -> dom ) ; } catch ( \ Exception $ e ) { $ this -> statusManager -> setStatus ( $ this -> users , $ this -> dom , $ this -> options [ 'catchAllIsValid' ] , 'error while on CatchAll test: ' . $ e ) ; } // if a catchall domain is detected, and we consider // accounts on such domains as invalid, mark all the // users as invalid and move on if ( $ isCatchallDomain ) { if ( ! $ this -> options [ 'catchAllIsValid' ] ) { $ this -> statusManager -> setStatus ( $ this -> users , $ this -> dom , $ this -> options [ 'catchAllIsValid' ] , 'catch all detected' ) ; return true ; } } } }
Do a catch-all test for the domain .
This increases checking time for a domain slightly,
but doesn't confuse users.
Do a catch - all test for the domain . This increases checking time for a domain slightly but doesn t confuse users .