Beispiel #1
0
 /**
  * @param $arg[optional] = false
  * @return bool
  */
 function Connect()
 {
     if ($this->_pop3Mail->socket != false) {
         return true;
     }
     if (!$this->_pop3Mail->connect($this->Account->MailIncHost, $this->Account->MailIncPort)) {
         setGlobalError(ErrorPOP3Connect);
         return false;
     } else {
         register_shutdown_function(array(&$this, 'Disconnect'));
     }
     if (!$this->_pop3Mail->login($this->Account->MailIncLogin, $this->Account->MailIncPassword)) {
         setGlobalError(ErrorPOP3IMAP4Auth);
         return false;
     }
     return true;
 }
Beispiel #2
0
 /**
  * @return bool
  */
 function Connect()
 {
     if ($this->_pop3Mail->socket != false) {
         return true;
     }
     if (!$this->_pop3Mail->connect($this->_account->MailIncHost, $this->_account->MailIncPort)) {
         /* $this->SetError($this->_pop3Mail->error); */
         $this->SetError(ap_Utils::TakePhrase('WM_ERROR_POP3_CONNECT'));
         return false;
     } else {
         register_shutdown_function(array(&$this, 'Disconnect'));
     }
     if (!$this->_pop3Mail->login($this->_account->MailIncLogin, $this->_account->MailIncPassword)) {
         /* $this->SetError($this->_pop3Mail->error); */
         $this->SetError(ap_Utils::TakePhrase('WM_ERROR_POP3IMAP4AUTH'));
         return false;
     }
     return true;
 }
 /**
  * @param $arg[optional] = false
  * @return bool
  */
 function Connect($arg = false)
 {
     if ($this->_pop3Mail->socket != false) {
         return true;
     }
     if (!$this->_pop3Mail->connect($this->Account->MailIncHost, $this->Account->MailIncPort)) {
         setGlobalError(ErrorPOP3Connect);
         return false;
     } else {
         register_shutdown_function(array(&$this, 'Disconnect'));
     }
     if (!$this->_pop3Mail->login($this->Account->MailIncLogin, $this->Account->MailIncPassword)) {
         /*$err = getGlobalError();
         		if (strlen($err) > 5 && strtolower(substr($err, 0, 4)) == '-err')
         		{
         			setGlobalError(trim(substr($err, 4)));
         		}*/
         setGlobalError(ErrorPOP3IMAP4Auth);
         return false;
     }
     return true;
 }