Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Smtp implementation of Zend_Mail_Protocol_Abstract
Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT
unknown_type $_auth = 'false'Indicates an smtp AUTH has been issued and authenticated
Detailsunknown_type $_data = 'null'Indicates that DATA has been issued and sent
Detailsunknown_type $_helo = 'false'Indicates the HELO command has been issues
Detailsunknown_type $_mail = 'false'Indicates a MAIL command has been issued
Detailsunknown_type $_rcpt = 'false'Indicates one or more RCTP commands have been issued
Detailsstring $_secure = ''Indicates that a session is requested to be secure
Detailsboolean $_sess = 'false'Indicates an smtp session has been started by the HELO command
Detailsstring $_transport = 'tcp'The transport method for the socket
Details__construct(
string $host
=
127.0.0.1, integer $port
=
null, array $config
=
array
)
:
voidConstructor.
Details_ehlo(
string $host
)
:
voidSend EHLO or HELO depending on capabilities of smtp host
Details_startSession(
)
:
voidStart mail session
Details_stopSession(
)
:
voidStop mail session
Detailsauth(
)
:
voidDefault authentication method
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
Detailsconnect(
)
:
booleanConnect to the server with the parameters given in the constructor.
Detailsdata(
string $data
)
:
voidIssues DATA command
Detailsdisconnect(
)
:
voidCloses connection
Detailshelo(
string $host
=
127.0.0.1
)
:
voidInitiate HELO/EHLO sequence and set flag to indicate valid smtp session
Detailsmail(
string $from
)
:
voidIssues MAIL command
Detailsnoop(
)
:
voidIssues 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.
Detailsquit(
)
:
voidIssues the QUIT command and clears the current session
Detailsrcpt(
string $to
)
:
voidIssues RCPT command
Detailsrset(
)
:
voidIssues 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.
Detailsvrfy(
string $user
)
:
voidIssues the VRFY command end validates answer
Not used by Zend_Mail.
Details