Class AbstractProtocol

Summary

Fully Qualified Name: Zend\Mail\Protocol\AbstractProtocol

Description

Provides low-level methods for concrete adapters to communicate with a remote mail server and track requests and responses.

Methods

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

Method Details

__construct()

Constructor.

Parameter Name Type Description
$host string OPTIONAL
$port int OPTIONAL

Returns:

__destruct()

Class destructor to cleanup open resources

Returns:

connect()

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:

getLog()

Retrieve the transaction log

Returns: string

getMaximumLog()

Get the maximum log size

Returns: int the maximum log size

getRequest()

Retrieve the last client request

Returns: string

getResponse()

Retrieve the last server response

Returns: array

resetLog()

Reset the transaction log

Returns:

setMaximumLog()

Set the maximum log size

Parameter Name Type Description
$maximumLog int Maximum

Returns:

Top