__construct()
__destruct()
capa()
connect()
delete()
getList()
login()
logout()
noop()
readResponse()
request()
retrieve()
sendRequest()
status()
top()
undelete()
uniqueid()
$hasTop
$socket
$timestamp
TIMEOUT_CONNECTION
__construct(string $host, int | null $port, bool | string $ssl)
string
hostname or IP address of POP3 server, if given connect() is called
intnull
port of POP3 server, null for default (110 or 995 for ssl)
boolstring
use ssl? 'SSL', 'TLS' or false
__destruct()
capa() : array
array
list of capabilitiesconnect(string $host, int | null $port, string | bool $ssl) : string
string
hostname or IP address of POP3 server
intnull
of POP3 server, default is 110 (995 for ssl)
stringbool
use 'SSL', 'TLS' or false
\Zend\Mail\Protocol\Exception\RuntimeException |
---|
string
welcome messagedelete($msgno)
getList(int | null $msgno) : int | array
intnull
number of message, null for all
int
array
size of given message or list with array(num => size)login(string $user, string $password, bool $tryApop)
Can use APOP
string
username
string
password
bool
should APOP be tried?
logout()
noop()
readResponse(bool $multiline) : string
bool
response has multiple lines and should be read until "
\Zend\Mail\Protocol\Exception\RuntimeException |
---|
string
responserequest(string $request, bool $multiline) : string
see | \Zend\Mail\Protocol\sendRequest() |
---|---|
see | \Zend\Mail\Protocol\readResponse() |
string
request
bool
multiline response?
string
result from readResponse()retrieve(int $msgno) : string
int
message number
string
messagesendRequest(string $request)
string
your request without newline
\Zend\Mail\Protocol\Exception\RuntimeException |
---|
status(int $messages, int $octets)
int
out parameter with count of messages
int
out parameter with size in octets of messages
top(int $msgno, int $lines, bool $fallback) : string
The fallback makes normal RETR call, which retrieves the whole message. Additional lines are not removed.
int
number of message
int
number of wanted body lines (empty line is inserted after header lines)
bool
fallback with full retrieve if top is not supported
\Zend\Mail\Protocol\Exception\RuntimeException |
|
---|---|
\Zend\Mail\Protocol\Exception\ExceptionInterface |
string
message headers with wanted body linesundelete()
uniqueid(int | null $msgno) : string | array
intnull
number of message, null for all
string
array
uniqueid of message or list with array(num => uniqueid)$hasTop : null | bool
$socket : null | resource
TIMEOUT_CONNECTION