Глава 12. Zend_Mime


12.1. Introduction
12.2. Zend_Mime_Message
12.2.1. Introduction
12.2.2. Instantiation
12.2.3. Adding MIME Parts
12.2.4. Boundary handling
12.2.5. parsing a string to create a Zend_Mime_Message object (experimental)
12.3. Zend_Mime_Part
12.3.1. Introduction
12.3.2. Instantiation
12.3.3. Methods for rendering the message part to a string

12.1. Introduction

Zend_Mime is a support class for handling multipart MIME messages. It is used by Zend_Mail, and may be used by applications requiring MIME support.

Zend_Mime provides a simple set of methods to work with MIME:

  • boundary(): Returns the MIME boundary string.
  • boundaryLine(): Returns the complete MIME boundary line.
  • encodeBase64(): Encodes a string into base64 encoding.
  • encodeQuotedPrintable(): Encodes a string with the quoted-printable mechanism.
  • isPrintable(): Returns TRUE if the given string contains no unprintable characters, FALSE otherwise.
  • mimeEnd(): Returns the complete MIME end boundary line.