SMTP implementation of ZendMailProtocolAbstractProtocol
Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT
Constructor.
The first argument may be an array of all options. If so, it must include the ‘host’ and ‘port’ keys in order to ensure that all required values are present.
Parameters: |
|
---|---|
Throws ExceptionInvalidArgumentException: | |
Connect to the server with the parameters given in the constructor.
Return type: | bool |
---|
Initiate HELO/EHLO sequence and set flag to indicate valid smtp session
Parameters: | string – The client hostname or IP address (default: 127.0.0.1) |
---|---|
Throws ExceptionRuntimeException: | |
Send EHLO or HELO depending on capabilities of smtp host
Parameters: | string – The client hostname or IP address (default: 127.0.0.1) |
---|---|
Throws Exception|ExceptionExceptionInterface: | |
Issues MAIL command
Parameters: | string – Sender mailbox |
---|---|
Throws ExceptionRuntimeException: | |
Issues RCPT command
Parameters: | string – Receiver(s) mailbox |
---|---|
Throws ExceptionRuntimeException: | |
Issues DATA command
Parameters: | string – |
---|---|
Throws ExceptionRuntimeException: | |
Issues the RSET command end validates answer
Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction.
Issues the NOOP command end validates answer
Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open.
Issues the VRFY command end validates answer
Not used by Zend_Mail.
Parameters: | string – User Name or eMail to verify |
---|
Issues the QUIT command and clears the current session
Default authentication method
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
Closes connection