Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Methods for rendering the message part to a string

getContent() 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.

  • $charset has to be set to the actual charset of the content if it is a text type (Text or HTML).

  • $id may be set to identify a content-id for inline images in a HTML mail.

  • $filename contains the name the file will get when downloading it.

  • $disposition defines if the file should be treated as an attachment or if it is used inside the (HTML-) mail (inline).

  • $description is only used for informational purposes.

  • $boundary defines string as boundary.

  • $location can be used as resource URI that has relation to the content.

  • $language defines languages in the content.

Zend Framework