Zend_Mime_MessageIntroductionZend_Mime_Message represents a MIME compliant message that can contain one or more separate Parts (Represented as Zend_Mime_Part objects). With Zend_Mime_Message, MIME compliant multipart messages can be generated from Zend_Mime_Part objects. Encoding and Boundary handling are handled transparently by the class. Zend_Mime_Message objects can also be reconstructed from given strings (experimental). Used by Zend_Mail. InstantiationThere is no explicit constructor for Zend_Mime_Message. Adding MIME PartsZend_Mime_Part
Objects can be added to a given Zend_Mime_Message object by calling
An array with all Zend_Mime_Part
objects in the Zend_Mime_Message is returned
from the method
The function Boundary handlingZend_Mime_Message usually creates and uses its own
Zend_Mime Object to generate a boundary. If you need to
define the boundary or want to change the behaviour of the Zend_Mime object
used by Zend_Mime_Message, you can instantiate the Zend_Mime
object yourself and then register it to Zend_Mime_Message.
Usually you will not need to do this.
parsing a string to create a Zend_Mime_Message object (experimental)A given MIME compliant message in string form can be used to reconstruct a Zend_Mime_Message Object from it. Zend_Mime_Message has a static factory Method to parse this String and return a Zend_Mime_Message Object. Zend_Mime_Message::createFromMessage($str, $boundary)
decodes the given string and returns a Zend_Mime_Message
Object that can then be examined using
|