|
使用PHP的Socket写的POP3类(10) }
//--------------- // 邮件原子操作 //---------------
//登录邮箱 function popLogin() { if (!$this->getIsConnect()) { return false; } $this->sendCommand("USER ".$this->strEmail); $this->getLineResponse(); $bolUserRight = $this->getRestIsSucceed();
$this->sendCommand("PASS ".$this->strPasswd); $this->getLineResponse(); $bolPassRight = $this->getRestIsSucceed();
if (!$bolUserRight !$bolPassRight) { $this->setMessage($this->strResponse, 2004); return false; } $this->bolIsLogin = true; return true; }
//退出登录 function popLogout() { if (!$this->getIsConnect() && $this->bolIsLogin) { return false; }
|