1177. Class

1177.1. Zend\Mime\Mime

Support class for MultiPart Mime Messages

1177.1.1. Methods

1177.1.1.1. isPrintable

isPrintable()

Check if the given string is “printable”

Checks that a string contains no unprintable characters. If this returns false, encode the string for secure delivery.

Parameters:string
Return type:bool

1177.1.1.2. encodeQuotedPrintable

encodeQuotedPrintable()

Encode a given string with the QUOTED_PRINTABLE mechanism and wrap the lines.

Parameters:
  • string
  • int – Defaults to {@link LINELENGTH}
  • string – Defaults to {@link LINEEND}
Return type:

string

1177.1.1.3. _encodeQuotedPrintable

_encodeQuotedPrintable()

Converts a string into quoted printable format.

Parameters:string
Return type:string

1177.1.1.4. encodeQuotedPrintableHeader

encodeQuotedPrintableHeader()

Encode a given string with the QUOTED_PRINTABLE mechanism for Mail Headers.

Mail headers depend on an extended quoted printable algorithm otherwise a range of bugs can occur.

Parameters:
  • string
  • string
  • int – Defaults to {@link LINELENGTH}
  • string – Defaults to {@link LINEEND}
Return type:

string

1177.1.1.5. getNextQuotedPrintableToken

getNextQuotedPrintableToken()

Retrieves the first token from a quoted printable string.

Parameters:string
Return type:string

1177.1.1.6. encodeBase64Header

encodeBase64Header()

Encode a given string in mail header compatible base64 encoding.

Parameters:
  • string
  • string
  • int – Defaults to {@link LINELENGTH}
  • string – Defaults to {@link LINEEND}
Return type:

string

1177.1.1.7. encodeBase64

encodeBase64()

Encode a given string in base64 encoding and break lines according to the maximum linelength.

Parameters:
  • string
  • int – Defaults to {@link LINELENGTH}
  • string – Defaults to {@link LINEEND}
Return type:

string

1177.1.1.8. __construct

__construct()

Constructor

Parameters:null|string

:access :

1177.1.1.9. encode

encode()

Encode the given string with the given encoding.

Parameters:
  • string
  • string
  • string – EOL string; defaults to {@link Zend_Mime::LINEEND}
Return type:

string

1177.1.1.10. boundary

boundary()

Return a MIME boundary

Return type:string

1177.1.1.11. boundaryLine

boundaryLine()

Return a MIME boundary line

Parameters:string – Defaults to {@link LINEEND}

:access :

Return type:string

1177.1.1.12. mimeEnd

mimeEnd()

Return MIME ending

Parameters:string – Defaults to {@link LINEEND}

:access :

Return type:string

1177.1.2. Constants

1177.1.2.1. TYPE_OCTETSTREAM

1177.1.2.2. TYPE_TEXT

1177.1.2.3. TYPE_HTML

1177.1.2.4. ENCODING_7BIT

1177.1.2.5. ENCODING_8BIT

1177.1.2.6. ENCODING_QUOTEDPRINTABLE

1177.1.2.7. ENCODING_BASE64

1177.1.2.8. DISPOSITION_ATTACHMENT

1177.1.2.9. DISPOSITION_INLINE

1177.1.2.10. LINELENGTH

1177.1.2.11. LINEEND

1177.1.2.12. MULTIPART_ALTERNATIVE

1177.1.2.13. MULTIPART_MIXED