/*~ class.pop3.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
-| Version: 2.0.3 |
+| Version: 2.0.4 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
function POP3 ()
{
$this->pop_conn = 0;
- $this->connected = false;
+ $this->connected = FALSE;
$this->error = null;
}
* @param string $username
* @param string $password
*/
- function Authorise ($host, $port = false, $tval = false, $username, $password, $debug_level = 0)
+ function Authorise ($host, $port = FALSE, $tval = FALSE, $username, $password, $debug_level = 0)
{
$this->host = $host;
// If no port value is passed, retrieve it
- if ($port == false)
+ if ($port == FALSE)
{
$this->port = $this->POP3_PORT;
}
}
// If no port value is passed, retrieve it
- if ($tval == false)
+ if ($tval == FALSE)
{
$this->tval = $this->POP3_TIMEOUT;
}
{
$this->Disconnect();
- return true;
+ return TRUE;
}
}
// We need to disconnect regardless if the login succeeded
$this->Disconnect();
- return false;
+ return FALSE;
}
/**
* @param integer $tval
* @return boolean
*/
- function Connect ($host, $port = false, $tval = 30)
+ function Connect ($host, $port = FALSE, $tval = 30)
{
// Are we already connected?
if ($this->connected)
{
- return true;
+ return TRUE;
}
/*
}
// Did we connect?
- if ($this->pop_conn == false)
+ if ($this->pop_conn == FALSE)
{
// It would appear not...
$this->error = array(
$this->displayErrors();
}
- return false;
+ return FALSE;
}
// Increase the stream time-out
if ($this->checkResponse($pop3_response))
{
// The connection is established and the POP3 server is talking
- $this->connected = true;
- return true;
+ $this->connected = TRUE;
+ return TRUE;
}
}
*/
function Login ($username = '', $password = '')
{
- if ($this->connected == false)
+ if ($this->connected == FALSE)
{
$this->error = 'Not connected to POP3 server';
if ($this->checkResponse($pop3_response))
{
- return true;
+ return TRUE;
}
else
{
- return false;
+ return FALSE;
}
}
else
{
- return false;
+ return FALSE;
}
}
$this->displayErrors();
}
- return false;
+ return FALSE;
}
else
{
- return true;
+ return TRUE;
}
}