作者 邓超

x

@@ -67,11 +67,12 @@ class Mail { @@ -67,11 +67,12 @@ class Mail {
67 // 是否初始成功 67 // 是否初始成功
68 $this->client->login($host['host'].':'.$host['port'],$this->username,$this->password); 68 $this->client->login($host['host'].':'.$host['port'],$this->username,$this->password);
69 }catch (\Throwable $e){ 69 }catch (\Throwable $e){
70 - if($pass_err && $e->getCode() == 403){ 70 + if($pass_err){
71 // 是否是密码错误 71 // 是否是密码错误
72 foreach ([ 72 foreach ([
73 'NO [ALERT] Invalid credentials (Failure)', 73 'NO [ALERT] Invalid credentials (Failure)',
74 - 'NO LOGIN Login error' 74 + 'NO LOGIN Login error',
  75 + 'NO Login fail. Password is incorrect or service is not open.'
75 ] as $em){ 76 ] as $em){
76 if(str_contains($e->getMessage(), $em)){ 77 if(str_contains($e->getMessage(), $em)){
77 db()->update( 78 db()->update(