Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Zend_Mail_Transport_Abstract Class Reference

Public Member Functions

 send (Zend_Mail $mail)
 Send a mail using this transport.
 

Public Attributes

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

Protected Member Functions

 _sendMail ()
 Send an email independent from the used transport.
 
 _getHeaders ($boundary)
 Return all mail headers as an array.
 
 _prepareHeaders ($headers)
 Prepare header string for use in transport.
 
 _buildBody ()
 Generate MIME compliant message from the current configuration.
 

Static Protected Member Functions

static _formatHeader (&$item, $key, $prefix)
 Prepend header name to header value.
 

Protected Attributes

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

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
static _formatHeader ( $item,
  $key,
  $prefix 
)
staticprotected

Prepend header name to header value.

Parameters
string$item
string$key
string$prefixprotected
Returns
void
_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
_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
_sendMail ( )
abstractprotected

Send an email independent from the used transport.

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

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

Member Data Documentation

$_headers = array()
protected
$_isMultipart = false
protected
$_mail = false
protected
$_parts = array()
protected
$body = ''
$boundary = ''
$EOL = "\r\n"
$header = ''
$recipients = ''