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() |
Definition at line 40 of file Abstract.php.
_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.
Definition at line 233 of file Abstract.php.
static _formatHeader | ( | &$ | item, |
$ | key, | ||
$ | prefix | ||
) | [static, protected] |
Prepend header name to header value
string | $item | |
string | $key | |
string | $prefix | protected |
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.
string | $boundary |
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.
mixed | $headers | protected |
Zend_Mail_Transport_Exception | if any header lines exceed 998 characters |
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
Zend_Mail | public |
Zend_Mail_Transport_Exception | if mail is empty |
Definition at line 305 of file Abstract.php.