Fully Qualified Name: | Zend\Mail\Protocol\AbstractProtocol |
Provides low-level methods for concrete adapters to communicate with a remote mail server and track requests and responses.
Name | Description | Defined By |
---|---|---|
__construct() | Constructor. | AbstractProtocol |
__destruct() | Class destructor to cleanup open resources | AbstractProtocol |
connect() | Create a connection to the remote host | AbstractProtocol |
getLog() | Retrieve the transaction log | AbstractProtocol |
getMaximumLog() | Get the maximum log size | AbstractProtocol |
getRequest() | Retrieve the last client request | AbstractProtocol |
getResponse() | Retrieve the last server response | AbstractProtocol |
resetLog() | Reset the transaction log | AbstractProtocol |
setMaximumLog() | Set the maximum log size | AbstractProtocol |
Constructor.
Parameter Name | Type | Description |
---|---|---|
$host | string | OPTIONAL |
$port | int | OPTIONAL |
Returns:
Class destructor to cleanup open resources
Returns:
Create a connection to the remote host
Concrete adapters for this class will implement their own unique connect scripts, using the _connect() method to create the socket resource.
Returns:
Retrieve the transaction log
Returns: string
Get the maximum log size
Returns: int the maximum log size
Retrieve the last client request
Returns: string
Retrieve the last server response
Returns: array
Reset the transaction log
Returns:
Set the maximum log size
Parameter Name | Type | Description |
---|---|---|
$maximumLog | int | Maximum |
Returns: