## Zend_Mail_Transport_Smtp

Description

SMTP connection object

Loads an instance of Zend_Mail_Protocol_Smtp and forwards smtp transactions

- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Mail/Transport/Smtp.php (line 48)

    Zend_Mail_Transport_Abstract
       |
       --Zend_Mail_Transport_Smtp

Variable Summary
string $_auth
array $_config
Zend_Mail_Protocol_Smtp $_connection
string $_host
string $_name
integer|null $_port
Method Summary
void __construct ([string $host = '127.0.0.1'], [ $config = array()])
void __destruct ()
Zend_Mail_Protocol|null getConnection ()
void setConnection ( $connection, Zend_Mail_Protocol_Abstract $client)
void _sendMail ()
Variables
string $_auth (line 79)

Authentication type OPTIONAL

- access: protected

array $_config (line 87)

Config options for authentication

- access: protected

Zend_Mail_Protocol_Smtp $_connection (line 95)

Instance of Zend_Mail_Protocol_Smtp

- access: protected

string $_host (line 55)

Remote smtp hostname or i.p.

- access: protected

string $_name = 'localhost' (line 71)

Local client hostname or i.p.

- access: protected

integer|null $_port (line 63)

Port number

- access: protected

Methods
Constructor __construct (line 105)

Constructor.

- access: public

void __construct ([string $host = '127.0.0.1'], [ $config = array()])

- string $host: OPTIONAL (Default: 127.0.0.1)
- array|null $config: OPTIONAL (Default: null)

Destructor __destruct (line 127)

Class destructor to ensure all open connections are closed

- access: public

void __destruct ()
getConnection (line 154)

Gets the connection protocol instance

- access: public

Zend_Mail_Protocol|null getConnection ()
setConnection (line 143)

Sets the connection protocol instance

- access: public

void setConnection ( $connection, Zend_Mail_Protocol_Abstract $client)

- Zend_Mail_Protocol_Abstract $client
- Zend_Mail_Protocol_Abstract $connection

_sendMail (line 167)

Send 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.

- access: public

void _sendMail ()

Documentation generated on Wed, 21 Feb 2007 12:03:00 -0800 by phpDocumentor 1.3.1