Zend_Mail_Protocol_Abstract
Provides low-level methods for concrete adapters to communicate with a remote mail server and track requests and responses.
Located in /Mail/Protocol/Abstract.php (line 50)
Class | Description |
---|---|
![]() |
Smtp implementation of Zend_Mail_Protocol_Abstract |
Hostname or IP address of remote server
Port number of connection
Last request sent to server
Array of server responses to last request
Socket connection resource
String template for parsing server responses using sscanf (default: 3 digit code and response string)
Instance of Zend_Validate to check hostnames
Constructor.
Class destructor to cleanup open resources
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.
Retrieve the transaction log
Retrieve the last client request
Retrieve the last server response
Reset the transaction log
Add the transaction log
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'
Disconnect from remote host and free resource
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.
Get a line from the stream.
Send the given request followed by a LINEEND to the server.
Documentation generated on Mon, 21 Jun 2010 15:04:41 -0400 by phpDocumentor 1.4.3