Глава 10. Zend_Mime

Содержание

10.1. Introduction
10.2. Zend_Mime_Message
10.2.1. Introduction
10.2.2. Instantiation
10.2.3. Adding MIME Parts
10.2.4. Boundary handling
10.2.5. parsing a string to create a Zend_Mime_Message object (experimental)
10.3. Zend_Mime_Part
10.3.1. Introduction
10.3.2. Instantiation
10.3.3. Methods for rendering the message part to a string

10.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.