__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)
stringhostname or IP address of POP3 server, if given connect() is called
intnullport of POP3 server, null for default (110 or 995 for ssl)
boolstringuse ssl? 'SSL', 'TLS' or false
__destruct()
capa() : array
arraylist of capabilitiesconnect(string $host, int | null $port, string | bool $ssl) : string
stringhostname or IP address of POP3 server
intnullof POP3 server, default is 110 (995 for ssl)
stringbooluse 'SSL', 'TLS' or false
\Zend\Mail\Protocol\Exception\RuntimeException |
|---|
stringwelcome messagedelete($msgno)
getList(int | null $msgno) : int | array
intnullnumber of message, null for all
intarraysize of given message or list with array(num => size)login(string $user, string $password, bool $tryApop)
Can use APOP
stringusername
stringpassword
boolshould APOP be tried?
logout()
noop()
readResponse(bool $multiline) : string
boolresponse has multiple lines and should be read until "
\Zend\Mail\Protocol\Exception\RuntimeException |
|---|
stringresponserequest(string $request, bool $multiline) : string
| see | \Zend\Mail\Protocol\sendRequest() |
|---|---|
| see | \Zend\Mail\Protocol\readResponse() |
stringrequest
boolmultiline response?
stringresult from readResponse()retrieve(int $msgno) : string
intmessage number
stringmessagesendRequest(string $request)
stringyour request without newline
\Zend\Mail\Protocol\Exception\RuntimeException |
|---|
status(int $messages, int $octets)
intout parameter with count of messages
intout 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.
intnumber of message
intnumber of wanted body lines (empty line is inserted after header lines)
boolfallback with full retrieve if top is not supported
\Zend\Mail\Protocol\Exception\RuntimeException |
|
|---|---|
\Zend\Mail\Protocol\Exception\ExceptionInterface |
stringmessage headers with wanted body linesundelete()
uniqueid(int | null $msgno) : string | array
intnullnumber of message, null for all
stringarrayuniqueid of message or list with array(num => uniqueid)$hasTop : null | bool
$socket : null | resource
TIMEOUT_CONNECTION