diff --git a/Net/SMTP.php b/Net/SMTP.php index dd822a5..c410dec 100644 --- a/Net/SMTP.php +++ b/Net/SMTP.php @@ -701,7 +701,8 @@ protected function authDigestMD5($uid, $pwd, $authz = '') return $error; } - $digest = Auth_SASL::factory('digest-md5'); + $auth_sasl = new Auth_SASL; + $digest = $auth_sasl->factory('digest-md5'); $challenge = base64_decode($this->arguments[0]); $auth_str = base64_encode( $digest->getResponse($uid, $pwd, $challenge, $this->host, "smtp", $authz)