Zend_Mime_PartIntroductionThis class represents a single part of a MIME message. It contains the actual content of the message part plus information about its encoding, content type and original filename. It provides a method for generating a string from the stored data. Zend_Mime_Part objects can be added to Zend_Mime_Message to assemble a complete multipart message. InstantiationZend_Mime_Part is instantiated with a string that represents the content of the new part. The type is assumed to be OCTET-STREAM, encoding is 8Bit. After instantiating a Zend_Mime_Part, meta information can be set by accessing its attributes directly: Methods for rendering the message part to a stringgetContent() returns the encoded content of the MimePart as a string using the encoding specified in the attribute $encoding. Valid values are Zend_Mime::ENCODING_* Characterset conversions are not performed. getHeaders() returns the Mime-Headers for the MimePart as generated from the information in the publicly accessible attributes. The attributes of the object need to be set correctly before this method is called.
|