ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
authorise ($host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) | |
Authenticate with a POP3 server. More... | |
connect ($host, $port=false, $tval=30) | |
Connect to a POP3 server. More... | |
login ($username='', $password='') | |
Log in to the POP3 server. More... | |
disconnect () | |
Disconnect from the POP3 server. More... | |
getErrors () | |
Get an array of error messages, if any. More... | |
Static Public Member Functions | |
static | popBeforeSmtp ( $host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) |
Simple static wrapper for all-in-one POP before SMTP. More... | |
Data Fields | |
$Version = '5.2.22' | |
$POP3_PORT = 110 | |
$POP3_TIMEOUT = 30 | |
$CRLF = "\r\n" | |
$do_debug = 0 | |
$host | |
$port | |
$tval | |
$username | |
$password | |
const | CRLF = "\r\n" |
Line break constant. More... | |
Protected Member Functions | |
getResponse ($size=128) | |
Get a response from the POP3 server. More... | |
sendString ($string) | |
Send raw data to the POP3 server. More... | |
checkResponse ($string) | |
Checks the POP3 server response. More... | |
setError ($error) | |
Add an error to the internal error store. More... | |
catchWarning ($errno, $errstr, $errfile, $errline) | |
POP3 connection error handler. More... | |
Protected Attributes | |
$pop_conn | |
$connected = false | |
$errors = array() | |
Definition at line 30 of file class.pop3.php.
POP3::authorise | ( | $host, | |
$port = false , |
|||
$timeout = false , |
|||
$username = '' , |
|||
$password = '' , |
|||
$debug_level = 0 |
|||
) |
Authenticate with a POP3 server.
A connect, login, disconnect sequence appropriate for POP-before SMTP authorisation. public
string | $host | The hostname to connect to |
integer | boolean | $port | The port number to connect to |
integer | boolean | $timeout | The timeout value |
string | $username | |
string | $password | |
integer | $debug_level |
Definition at line 165 of file class.pop3.php.
References $host, $password, $POP3_PORT, $POP3_TIMEOUT, $port, $result, $username, array, connect(), disconnect(), and login().
Referenced by popBeforeSmtp().
|
protected |
POP3 connection error handler.
integer | $errno | |
string | $errstr | |
string | $errfile | |
integer | $errline | protected |
Definition at line 397 of file class.pop3.php.
References array, and setError().
|
protected |
Checks the POP3 server response.
Looks for for +OK or -ERR.
string | $string |
Definition at line 348 of file class.pop3.php.
References array, and setError().
Referenced by connect(), and login().
POP3::connect | ( | $host, | |
$port = false , |
|||
$tval = 30 |
|||
) |
Connect to a POP3 server.
public
string | $host | |
integer | boolean | $port | |
integer | $tval |
Definition at line 207 of file class.pop3.php.
References $host, $POP3_PORT, $port, $tval, array, checkResponse(), getResponse(), and setError().
Referenced by authorise().
POP3::disconnect | ( | ) |
Disconnect from the POP3 server.
public
Definition at line 296 of file class.pop3.php.
References sendString().
Referenced by authorise().
POP3::getErrors | ( | ) |
Get an array of error messages, if any.
Definition at line 384 of file class.pop3.php.
References $errors.
|
protected |
POP3::login | ( | $username = '' , |
|
$password = '' |
|||
) |
Log in to the POP3 server.
Does not support APOP (RFC 2828, 4949). public
string | $username | |
string | $password |
Definition at line 266 of file class.pop3.php.
References $password, $username, checkResponse(), getResponse(), sendString(), and setError().
Referenced by authorise().
|
static |
Simple static wrapper for all-in-one POP before SMTP.
$host | ||
integer | boolean | $port | The port number to connect to |
integer | boolean | $timeout | The timeout value |
string | $username | |
string | $password | |
integer | $debug_level |
Definition at line 140 of file class.pop3.php.
References $host, $password, $port, $username, and authorise().
|
protected |
Send raw data to the POP3 server.
string | $string |
Definition at line 330 of file class.pop3.php.
Referenced by disconnect(), and login().
|
protected |
Add an error to the internal error store.
Also display debug output if it's enabled.
$error | protected |
Definition at line 368 of file class.pop3.php.
References $error.
Referenced by catchWarning(), checkResponse(), connect(), and login().
|
protected |
Definition at line 116 of file class.pop3.php.
POP3::$CRLF = "\r\n" |
Definition at line 59 of file class.pop3.php.
POP3::$do_debug = 0 |
Definition at line 67 of file class.pop3.php.
|
protected |
Definition at line 123 of file class.pop3.php.
Referenced by getErrors().
POP3::$host |
Definition at line 74 of file class.pop3.php.
Referenced by authorise(), connect(), and popBeforeSmtp().
POP3::$password |
Definition at line 102 of file class.pop3.php.
Referenced by authorise(), login(), and popBeforeSmtp().
POP3::$POP3_PORT = 110 |
Definition at line 44 of file class.pop3.php.
Referenced by authorise(), and connect().
POP3::$POP3_TIMEOUT = 30 |
Definition at line 51 of file class.pop3.php.
Referenced by authorise().
|
protected |
Definition at line 109 of file class.pop3.php.
POP3::$port |
Definition at line 81 of file class.pop3.php.
Referenced by authorise(), connect(), and popBeforeSmtp().
POP3::$tval |
Definition at line 88 of file class.pop3.php.
Referenced by connect().
POP3::$username |
Definition at line 95 of file class.pop3.php.
Referenced by authorise(), login(), and popBeforeSmtp().
POP3::$Version = '5.2.22' |
Definition at line 37 of file class.pop3.php.
const POP3::CRLF = "\r\n" |
Line break constant.
Definition at line 128 of file class.pop3.php.