作者 邓超

x

... ... @@ -67,7 +67,7 @@ class Mail {
// 是否初始成功
$this->client->login($host['host'].':'.$host['port'],$this->username,$this->password);
}catch (\Throwable $e){
logs($e->getMessage());
logs($this->username.'===>'.$e->getMessage());
if($pass_err){
// 是否是密码错误
foreach ([
... ... @@ -96,8 +96,6 @@ class Mail {
// db()->update(\Model\emailSql::$table,['pwd_error'=>1],dbWhere(['email'=>$this->username]));
// }
return -1;
}else{
logs($e->getMessage());
}
return $e->getCode() == 403 ? 0 : -1;
... ...