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

Zend_Mail_Transport_Abstract Class Reference

Inheritance diagram for Zend_Mail_Transport_Abstract:
Zend_Mail_Transport_Sendmail Zend_Mail_Transport_Smtp

Public Member Functions

 send (Zend_Mail $mail)

Data Fields

 $body = ''
 $boundary = ''
 $header = ''
 $recipients = ''
 $EOL = "\r\n"

Protected Member Functions

 _sendMail ()
 _getHeaders ($boundary)
 _prepareHeaders ($headers)
 _buildBody ()

Static Protected Member Functions

static _formatHeader (&$item, $key, $prefix)

Protected Attributes

 $_headers = array()
 $_isMultipart = false
 $_mail = false
 $_parts = array()

Detailed Description

Definition at line 40 of file Abstract.php.


Member Function Documentation

_buildBody (  ) [protected]

Generate MIME compliant message from the current configuration

If both a text and HTML body are present, generates a multipart/alternative Zend_Mime_Part containing the headers and contents of each. Otherwise, uses whichever of the text or HTML parts present.

The content part is then prepended to the list of Zend_Mime_Parts for this message.

Returns:
void

See also:
Zend_Mail_Transport_Exception

Definition at line 233 of file Abstract.php.

static _formatHeader ( &$  item,
key,
prefix 
) [static, protected]

Prepend header name to header value

Parameters:
string$item
string$key
string$prefixprotected
Returns:
void

Definition at line 165 of file Abstract.php.

_getHeaders ( boundary ) [protected]

Return all mail headers as an array

If a boundary is given, a multipart header is generated with a Content-Type of either multipart/alternative or multipart/mixed depending on the mail parts present in the Zend_Mail object present.

Parameters:
string$boundary
Returns:
array

Definition at line 127 of file Abstract.php.

_prepareHeaders ( headers ) [protected]

Prepare header string for use in transport

Prepares and generates $header based on the headers provided.

Parameters:
mixed$headersprotected
Returns:
void
Exceptions:
Zend_Mail_Transport_Exceptionif any header lines exceed 998 characters

See also:
Zend_Mail_Transport_Exception
Zend_Mail_Transport_Exception

Reimplemented in Zend_Mail_Transport_Sendmail, and Zend_Mail_Transport_Smtp.

Definition at line 181 of file Abstract.php.

_sendMail (  ) [abstract, protected]

Send an email independent from the used transport

The requisite information for the email will be found in the following properties:

Reimplemented in Zend_Mail_Transport_Sendmail, and Zend_Mail_Transport_Smtp.

send ( Zend_Mail mail )

Send a mail using this transport

Parameters:
Zend_Mail$mailpublic
Returns:
void
Exceptions:
Zend_Mail_Transport_Exceptionif mail is empty

See also:
Zend_Mail_Transport_Exception

Definition at line 305 of file Abstract.php.


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