Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Abstract for sending eMails through different ways of transport
string $EOL = '\r\n'EOL character string used by transport
Detailsarray $_headers = 'array'Array of message headers
Detailsboolean $_isMultipart = 'false'Message is a multipart message
Detailsfalse|Zend_Mail $_mail = 'false'Zend_Mail object
Detailsarray $_parts = 'array'Array of message parts
Detailsstring $body = ''Mail body
Detailsstring $boundary = ''MIME boundary
Detailsstring $header = ''Mail header string
Detailsstring $recipients = ''Recipients string
Details_buildBody(
)
:
voidGenerate 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.
Details_formatHeader(
string $item, string $key, string $prefix
)
:
voidPrepend header name to header value
Details_getHeaders(
string $boundary
)
:
arrayReturn 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 {@link $_mail Zend_Mail object} present.
Details_prepareHeaders(
mixed $headers
)
:
voidPrepare header string for use in transport
Prepares and generates {@link $header} based on the headers provided.
Details_sendMail(
)
:
Send an email independent from the used transport
The requisite information for the email will be found in the following properties:
Detailssend(
Zend_Mail $mail
)
:
voidSend a mail using this transport
Details