core/model/modx/mail/phpmailer/class.pop3.php
\POP3
Package:
Parameters
Returns
Properties
Methods
Authorise(
string $host, integer $port
=
false, integer $tval
=
false, string $username, string $password, $debug_level
=
0
)
:
void
Combination of public events - connect, login, disconnect
Parameters
Name | Type | Description |
---|---|---|
$host | string | |
$port | integer | |
$tval | integer | |
$username | string | |
$password | string | |
$debug_level |
Connect(
string $host, integer $port
=
false, integer $tval
=
30
)
:
boolean
Connect to the POP3 server
Parameters
Returns
Name | Type | Description |
---|---|---|
$host | string | |
$port | integer | |
$tval | integer |
Type | Description |
---|---|
boolean |
Login(
string $username
=
'', string $password
=
''
)
:
boolean
Login to the POP3 server (does not support APOP yet)
Parameters
Returns
Name | Type | Description |
---|---|---|
$username | string | |
$password | string |
Type | Description |
---|---|
boolean |
catchWarning(
integer $errno, string $errstr, string $errfile, integer $errline
)
:
void
Takes over from PHP for the socket warning handler
Parameters
Name | Type | Description |
---|---|---|
$errno | integer | |
$errstr | string | |
$errfile | string | |
$errline | integer |
checkResponse(
string $string
)
:
boolean
Checks the POP3 server response for +OK or -ERR
Parameters
Returns
Name | Type | Description |
---|---|---|
$string | string |
Type | Description |
---|---|
boolean |
getResponse(
integer $size
=
128
)
:
string
Get the socket response back.
$size is the maximum number of bytes to retrieve
Name | Type | Description |
---|---|---|
$size | integer |
Type | Description |
---|---|
string |