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

Adding MIME Parts

Zend_Mime_Part Objects can be added to a given Zend_Mime_Message object by calling addPart($part)

An array with all Zend_Mime_Part objects in the Zend_Mime_Message is returned from the method getParts(). The Zend_Mime_Part objects can then be changed since they are stored in the array as references. If parts are added to the array or the sequence is changed, the array needs to be given back to the Zend_Mime_Part object by calling setParts($partsArray).

The function isMultiPart() will return TRUE if more than one part is registered with the Zend_Mime_Message object and thus the object would generate a Multipart-Mime-Message when generating the actual output.

Zend Framework