|
static | popBeforeSmtp ( $host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) |
|
◆ authorise()
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. @access public
- Parameters
-
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 | |
- Returns
- boolean
◆ catchWarning()
catchWarning |
( |
|
$errno, |
|
|
|
$errstr, |
|
|
|
$errfile, |
|
|
|
$errline |
|
) |
| |
|
protected |
POP3 connection error handler.
- Parameters
-
integer | $errno | |
string | $errstr | |
string | $errfile | |
integer | $errline | @access protected |
◆ checkResponse()
Checks the POP3 server response. Looks for for +OK or -ERR.
- Parameters
-
- Returns
- boolean @access protected
◆ connect()
connect |
( |
|
$host, |
|
|
|
$port = false , |
|
|
|
$tval = 30 |
|
) |
| |
Connect to a POP3 server. @access public
- Parameters
-
string | $host | |
integer | boolean | $port | |
integer | $tval | |
- Returns
- boolean
◆ disconnect()
Disconnect from the POP3 server. @access public
◆ getErrors()
Get an array of error messages, if any.
- Returns
- array
◆ getResponse()
getResponse |
( |
|
$size = 128 | ) |
|
|
protected |
Get a response from the POP3 server. $size is the maximum number of bytes to retrieve
- Parameters
-
- Returns
- string @access protected
◆ login()
login |
( |
|
$username = '' , |
|
|
|
$password = '' |
|
) |
| |
Log in to the POP3 server. Does not support APOP (RFC 2828, 4949). @access public
- Parameters
-
string | $username | |
string | $password | |
- Returns
- boolean
◆ popBeforeSmtp()
static popBeforeSmtp |
( |
|
$host, |
|
|
|
$port = false , |
|
|
|
$timeout = false , |
|
|
|
$username = '' , |
|
|
|
$password = '' , |
|
|
|
$debug_level = 0 |
|
) |
| |
|
static |
Simple static wrapper for all-in-one POP before SMTP
- Parameters
-
| $host | |
integer | boolean | $port | The port number to connect to |
integer | boolean | $timeout | The timeout value |
string | $username | |
string | $password | |
integer | $debug_level | |
- Returns
- boolean
◆ sendString()
Send raw data to the POP3 server.
- Parameters
-
- Returns
- integer @access protected
◆ setError()
Add an error to the internal error store. Also display debug output if it's enabled.
- Parameters
-
◆ $connected
◆ $CRLF
◆ $do_debug
◆ $errors
◆ $host
◆ $password
◆ $POP3_PORT
◆ $POP3_TIMEOUT
◆ $pop_conn
◆ $port
◆ $tval
◆ $username
◆ $Version
◆ CRLF
The documentation for this class was generated from the following file: