Provides low-level methods for concrete adapters to communicate with a remote mail server and track requests and responses.
Constructor.
Parameters: |
|
---|---|
Throws ExceptionRuntimeException: | |
Set the maximum log size
Parameters: | integer – Maximum log size |
---|
Get the maximum log size
Return type: | int the maximum log size |
---|
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.
Connect to the server using the supplied transport and target
An example $remote string may be ‘tcp://mail.example.com:25‘ or ‘ssh://hostname.com:2222‘
Parameters: | string – Remote |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | bool |
Send the given request followed by a LINEEND to the server.
Parameters: | string – |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | integer|bool Number of bytes written to remote host |
Get a line from the stream.
Parameters: | integer – Per-request timeout value if applicable |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | string |
Parse server response for successful codes
Read the response from the stream and check for expected return code. Throws a Zend_Mail_Protocol_Exception if an unexpected code is returned.
Parameters: |
|
---|---|
Throws ExceptionRuntimeException: | |
Return type: | string Last line of response string |