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 connection object
Loads an instance of Zend_Mail_Protocol_Smtp and forwards smtp transactions
string $EOL = '\n'EOL character string used by transport
Detailsstring $_auth = ''Authentication type OPTIONAL
Detailsarray $_config = ''Config options for authentication
DetailsZend_Mail_Protocol_Smtp $_connection = ''Instance of Zend_Mail_Protocol_Smtp
Detailsstring $_host = ''Remote smtp hostname or i.p.
Detailsstring $_name = 'localhost'Local client hostname or i.p.
Detailsinteger|null $_port = ''Port number
Details__construct(
string $host
=
127.0.0.1, array|null $config
=
array
)
:
voidConstructor.
Details__destruct(
)
:
voidClass destructor to ensure all open connections are closed
Details_prepareHeaders(
array $headers
)
:
voidFormat and fix headers
Some SMTP servers do not strip BCC headers. Most clients do it themselves as do we.
Details_sendMail(
)
:
voidSend an email via the SMTP connection protocol
The connection via the protocol adapter is made just-in-time to allow a developer to add a custom adapter if required before mail is sent.
DetailsgetConnection(
)
:
Zend_Mail_Protocol|nullGets the connection protocol instance
DetailssetConnection(
$connection
)
:
voidSets the connection protocol instance
Details