正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
@@ -1060,7 +1060,15 @@ class SMTP | @@ -1060,7 +1060,15 @@ class SMTP | ||
1060 | } | 1060 | } |
1061 | $this->client_send($commandstring . static::LE, $command); | 1061 | $this->client_send($commandstring . static::LE, $command); |
1062 | 1062 | ||
1063 | + if($command=='QUIT'&&$this->proxy_server){ | ||
1064 | + $this->last_reply = '221 Bye.'; | ||
1065 | + }else{ | ||
1063 | $this->last_reply = $this->get_lines(); | 1066 | $this->last_reply = $this->get_lines(); |
1067 | + if($command=='QUIT'){ | ||
1068 | + $this->last_reply = ltrim($this->last_reply); | ||
1069 | + } | ||
1070 | + } | ||
1071 | + | ||
1064 | //Fetch SMTP code and possible error code explanation | 1072 | //Fetch SMTP code and possible error code explanation |
1065 | $matches = []; | 1073 | $matches = []; |
1066 | if (preg_match('/^([\d]{3})[ -](?:([\d]\\.[\d]\\.[\d]{1,2}) )?/', $this->last_reply, $matches)) { | 1074 | if (preg_match('/^([\d]{3})[ -](?:([\d]\\.[\d]\\.[\d]{1,2}) )?/', $this->last_reply, $matches)) { |
-
请 注册 或 登录 后发表评论