Zend Framework
1.12
|
Public Member Functions | |
__construct ($host= '127.0.0.1', $port=null, array $config=array()) | |
Constructor. | |
connect () | |
Connect to the server with the parameters given in the constructor. | |
helo ($host= '127.0.0.1') | |
Initiate HELO/EHLO sequence and set flag to indicate valid smtp session. | |
mail ($from) | |
Issues MAIL command. | |
rcpt ($to) | |
Issues RCPT command. | |
data ($data) | |
Issues DATA command. | |
rset () | |
Issues the RSET command and validates answer. | |
noop () | |
Issues the NOOP command and validates answer. | |
vrfy ($user) | |
Issues the VRFY command and validates answer. | |
quit () | |
Issues the QUIT command and clears the current session. | |
auth () | |
Default authentication method. | |
disconnect () | |
Closes connection. | |
![]() | |
__construct ($host= '127.0.0.1', $port=null) | |
Constructor. | |
__destruct () | |
Class destructor to cleanup open resources. | |
setMaximumLog ($maximumLog) | |
Set the maximum log size. | |
getMaximumLog () | |
Get the maximum log size. | |
connect () | |
Create a connection to the remote host. | |
getRequest () | |
Retrieve the last client request. | |
getResponse () | |
Retrieve the last server response. | |
getLog () | |
Retrieve the transaction log. | |
resetLog () | |
Reset the transaction log. | |
Protected Member Functions | |
_ehlo ($host) | |
Send EHLO or HELO depending on capabilities of smtp host. | |
_startSession () | |
Start mail session. | |
_stopSession () | |
Stop mail session. | |
![]() | |
_addLog ($value) | |
Add the transaction log. | |
_connect ($remote) | |
Connect to the server using the supplied transport and target. | |
_disconnect () | |
Disconnect from remote host and free resource. | |
_send ($request) | |
Send the given request followed by a LINEEND to the server. | |
_receive ($timeout=null) | |
_expect ($code, $timeout=null) | |
Parse server response for successful codes. | |
_setStreamTimeout ($timeout) | |
Set stream timeout. | |
Protected Attributes | |
$_transport = 'tcp' | |
$_secure | |
$_sess = false | |
$_helo = false | |
$_auth = false | |
$_mail = false | |
$_rcpt = false | |
$_data = null | |
![]() | |
$_maximumLog = 64 | |
$_host | |
$_port | |
$_validHost | |
$_socket | |
$_request | |
$_response | |
$_template = '%d%s' | |
Additional Inherited Members | |
![]() | |
const | EOL = "\r\n" |
Mail default EOL string. | |
const | TIMEOUT_CONNECTION = 30 |
Default timeout in seconds for initiating session. | |
__construct | ( | $host = '127.0.0.1' , |
|
$port = null , |
|||
array | $config = array() |
||
) |
Constructor.
string | $host | |
integer | $port | |
array | $config |
Zend_Mail_Protocol_Exception |
|
protected |
Send EHLO or HELO depending on capabilities of smtp host.
string | $host | The client hostname or IP address (default: 127.0.0.1) |
Zend_Mail_Protocol_Exception |
|
protected |
Start mail session.
|
protected |
Stop mail session.
auth | ( | ) |
Default authentication method.
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
Zend_Mail_Protocol_Exception |
connect | ( | ) |
Connect to the server with the parameters given in the constructor.
data | ( | $data | ) |
Issues DATA command.
string | $data |
Zend_Mail_Protocol_Exception |
disconnect | ( | ) |
Closes connection.
helo | ( | $host = '127.0.0.1' | ) |
Initiate HELO/EHLO sequence and set flag to indicate valid smtp session.
string | $host | The client hostname or IP address (default: 127.0.0.1) |
Zend_Mail_Protocol_Exception |
( | $from | ) |
Issues MAIL command.
string | $from | Sender mailbox |
Zend_Mail_Protocol_Exception |
noop | ( | ) |
Issues the NOOP command and validates answer.
Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open.
quit | ( | ) |
Issues the QUIT command and clears the current session.
rcpt | ( | $to | ) |
Issues RCPT command.
string | $to | Receiver(s) mailbox |
Zend_Mail_Protocol_Exception |
rset | ( | ) |
Issues the RSET command and validates answer.
Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction.
vrfy | ( | $user | ) |
Issues the VRFY command and validates answer.
Not used by Zend_Mail.
string | $user | User Name or eMail to verify |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |