protected function authOAuthBearer()
    {
        $authStr = sprintf("n,a=%s,%shost=%s%sport=%s%sauth=Bearer %s%s%s",
            $this->message->getFromEmail(),
            chr(1),
            $this->host,
            chr(1),
            $this->port,
            chr(1),
            $this->oauthToken,
            chr(1),
            chr(1)
        );
        $authStr = base64_encode($authStr);
        $in = "AUTH OAUTHBEARER $authStr" . $this->CRLF;
        $code = $this->pushStack($in);
        if ($code !== '235'){
            throw new CodeException('235', $code, array_pop($this->resultStack));
        }
        return $this;
    }
protected function authOAuthBearer()
    {
        $authStr = sprintf("n,a=%s,%shost=%s%sport=%s%sauth=Bearer %s%s%s",
            $this->message->getFromEmail(),
            chr(1),
            $this->host,
            chr(1),
            $this->port,
            chr(1),
            $this->oauthToken,
            chr(1),
            chr(1)
        );
        $authStr = base64_encode($authStr);
        $in = "AUTH OAUTHBEARER $authStr" . $this->CRLF;
        $code = $this->pushStack($in);
        if ($code !== '235'){
            throw new CodeException('235', $code, array_pop($this->resultStack));
        }
        return $this;
    }
protected function authOAuthBearer ( ) { $ authStr = sprintf ( "n,a=%s,%shost=%s%sport=%s%sauth=Bearer %s%s%s" , $ this -> message -> getFromEmail ( ) , chr ( 1 ) , $ this -> host , chr ( 1 ) , $ this -> port , chr ( 1 ) , $ this -> oauthToken , chr ( 1 ) , chr ( 1 ) ) ; $ authStr = base64_encode ( $ authStr ) ; $ in = "AUTH OAUTHBEARER $authStr" . $ this -> CRLF ; $ code = $ this -> pushStack ( $ in ) ; if ( $ code !== '235' ) { throw new CodeException ( '235' , $ code , array_pop ( $ this -> resultStack ) ) ; } return $ this ; }
SMTP AUTH OAUTHBEARER
SUCCESS 235
@return $this
@throws CodeException
@throws SMTPException
SMTP AUTH OAUTHBEARER SUCCESS 235