Mime/Message.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Mime
- Version
- $Id$
\Zend_Mime_Message
- Children
- \Zend_Mail
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
_disassembleMime(string $body, string $boundary) : array
Explode MIME multipart string into seperate parts
Name | Type | Description |
---|---|---|
$body | string | |
$boundary | string |
Type | Description |
---|---|
array |
addPart(\Zend_Mime_Part $part) : void
Append a new Zend_Mime_Part to the current message
Name | Type | Description |
---|---|---|
$part | \Zend_Mime_Part |
createFromMessage(string $message, string $boundary, string $EOL = \Zend_Mime::LINEEND) : \Zend_Mime_Message
Decodes a MIME encoded string and returns a Zend_Mime_Message object with all the MIME parts set according to the given string
Name | Type | Description |
---|---|---|
$message | string | |
$boundary | string | |
$EOL | string | EOL string; defaults to {@link Zend_Mime::LINEEND} |
Type | Description |
---|---|
\Zend_Mime_Message |
generateMessage(string $EOL = \Zend_Mime::LINEEND) : string
Generate MIME-compliant message from the current configuration
Name | Type | Description |
---|---|---|
$EOL | string | EOL string; defaults to {@link Zend_Mime::LINEEND} |
Type | Description |
---|---|
string |
getMime() : \Zend_Mime
Returns the Zend_Mime object in use by the message
Type | Description |
---|---|
\Zend_Mime |
getPartContent(int $partnum, $EOL = \Zend_Mime::LINEEND) : string
Get the (encoded) content of a given part as a string
Name | Type | Description |
---|---|---|
$partnum | int | |
$EOL |
Type | Description |
---|---|
string |
getPartHeaders(int $partnum, $EOL = \Zend_Mime::LINEEND) : string
Get the headers of a given part as a string
Name | Type | Description |
---|---|---|
$partnum | int | |
$EOL |
Type | Description |
---|---|
string |
getPartHeadersArray(int $partnum) : array
Get the headers of a given part as an array
Name | Type | Description |
---|---|---|
$partnum | int |
Type | Description |
---|---|
array |
getParts() : array
Returns the list of all Zend_Mime_Parts in the message
Type | Description |
---|---|
array | of Zend_Mime_Part |
isMultiPart() : boolean
Check if message needs to be sent as multipart MIME message or if it has only one part.
Type | Description |
---|---|
boolean |
setMime(\Zend_Mime $mime) : void
Set Zend_Mime object for the message
Name | Type | Description |
---|---|---|
$mime | \Zend_Mime |