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) : arrayExplode MIME multipart string into seperate parts
| Name | Type | Description |
|---|---|---|
| $body | string | |
| $boundary | string |
| Type | Description |
|---|---|
| array |

addPart(\Zend_Mime_Part $part) : voidAppend 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_MessageDecodes 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) : stringGenerate 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_MimeReturns the Zend_Mime object in use by the message
| Type | Description |
|---|---|
| \Zend_Mime |

getPartContent(int $partnum, $EOL = \Zend_Mime::LINEEND) : stringGet 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) : stringGet the headers of a given part as a string
| Name | Type | Description |
|---|---|---|
| $partnum | int | |
| $EOL |
| Type | Description |
|---|---|
| string |

getPartHeadersArray(int $partnum) : arrayGet the headers of a given part as an array
| Name | Type | Description |
|---|---|---|
| $partnum | int |
| Type | Description |
|---|---|
| array |

getParts() : arrayReturns the list of all Zend_Mime_Parts in the message
| Type | Description |
|---|---|
| array | of Zend_Mime_Part |

isMultiPart() : booleanCheck if message needs to be sent as multipart MIME message or if it has only one part.
| Type | Description |
|---|---|
| boolean |

setMime(\Zend_Mime $mime) : voidSet Zend_Mime object for the message
| Name | Type | Description |
|---|---|---|
| $mime | \Zend_Mime |