Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes

Zend_Mail_Transport_Smtp Class Reference

Inheritance diagram for Zend_Mail_Transport_Smtp:
Zend_Mail_Transport_Abstract

Public Member Functions

 __construct ($host= '127.0.0.1', Array $config=array())
 __destruct ()
 setConnection (Zend_Mail_Protocol_Abstract $connection)
 getConnection ()
 _sendMail ()

Data Fields

 $EOL = "\n"

Protected Member Functions

 _prepareHeaders ($headers)

Protected Attributes

 $_host
 $_port
 $_name = 'localhost'
 $_auth
 $_config
 $_connection

Detailed Description

Definition at line 51 of file Smtp.php.


Constructor & Destructor Documentation

__construct ( host = '127.0.0.1',
Array $  config = array() 
)

Constructor.

Parameters:
string$hostOPTIONAL (Default: 127.0.0.1)
array | null$configOPTIONAL (Default: null)
Returns:
void

Definition at line 115 of file Smtp.php.

__destruct (  )

Class destructor to ensure all open connections are closed

Returns:
void

Definition at line 137 of file Smtp.php.


Member Function Documentation

_prepareHeaders ( headers ) [protected]

Format and fix headers

Some SMTP servers do not strip BCC headers. Most clients do it themselves as do we.

protected

Parameters:
array$headers
Returns:
void
Exceptions:
Zend_Transport_Exception

See also:
Zend_Mail_Transport_Exception

Reimplemented from Zend_Mail_Transport_Abstract.

Definition at line 224 of file Smtp.php.

_sendMail (  )

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.

Returns:
void

Reimplemented from Zend_Mail_Transport_Abstract.

Definition at line 181 of file Smtp.php.

getConnection (  )

Gets the connection protocol instance

Returns:
Zend_Mail_Protocol|null

Definition at line 168 of file Smtp.php.

setConnection ( Zend_Mail_Protocol_Abstract connection )

Sets the connection protocol instance

Parameters:
Zend_Mail_Protocol_Abstract$client
Returns:
void

Definition at line 157 of file Smtp.php.


The documentation for this class was generated from the following file: