Zend\Mail\Protocol\Pop3
Synopsis
class Pop3
{
- // constants
- const TIMEOUT_CONNECTION = 30;
- // members
- public null|bool $hasTop;
- protected null|resource $socket;
- protected null|string $timestamp;
- // methods
- public void __construct()
- public void __destruct()
- public string connect()
- public void sendRequest()
- public string readResponse()
- public string request()
- public void logout()
- public array capa()
- public void login()
- public void status()
- public int|array getList()
- public string|array uniqueid()
- public string top()
- public string retrieve()
- public void noop()
- public void delete()
- public void undelete()
Constants
Name | Value |
---|---|
TIMEOUT_CONNECTION | 30 |
Members
protected
- $socket
—
Zend\Mail\Protocol\null|resource
socket to pop3 - $timestamp
—
Zend\Mail\Protocol\null|string
greeting timestamp for apop
public
- $hasTop
—
Zend\Mail\Protocol\null|bool
saves if server supports top
Methods
public
- __construct() — Public constructor
- __destruct() — Public destructor
- capa() — Get capabilities from POP3 server
- connect() — Open connection to POP3 server
- delete() — Make a DELE count to remove a message
- getList() — Make LIST call for size of message(s)
- login() — Login to POP3 server. Can use APOP
- logout() — End communication with POP3 server (also closes socket)
- noop() — Make a NOOP call, maybe needed for keeping the server happy
- readResponse() — read a response
- request() — Send request and get response
- retrieve() — Make a RETR call for retrieving a full message with headers and body
- sendRequest() — Send a request
- status() — Make STAT call for message count and size sum
- top() — Make TOP call for getting headers and maybe some body lines This method also sets hasTop - before it it's not known if top is supported
- undelete() — Make RSET call, which rollbacks delete requests
- uniqueid() — Make UIDL call for getting a uniqueid