Zend Framework
3.0
|
Support class for MultiPart Mime Messages. More...
Public Member Functions | |
__construct ($boundary=null) | |
Constructor. | |
boundary () | |
Return a MIME boundary. | |
boundaryLine ($EOL=self::LINEEND) | |
Return a MIME boundary line. | |
mimeEnd ($EOL=self::LINEEND) | |
Return MIME ending. | |
Static Public Member Functions | |
static | isPrintable ($str) |
Check if the given string is "printable". | |
static | encodeQuotedPrintable ($str, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
Encode a given string with the QUOTED_PRINTABLE mechanism and wrap the lines. | |
static | encodeQuotedPrintableHeader ($str, $charset, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
Encode a given string with the QUOTED_PRINTABLE mechanism for Mail Headers. | |
static | encodeBase64Header ($str, $charset, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
Encode a given string in mail header compatible base64 encoding. | |
static | encodeBase64 ($str, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
Encode a given string in base64 encoding and break lines according to the maximum linelength. | |
static | encode ($str, $encoding, $EOL=self::LINEEND) |
Encode the given string with the given encoding. | |
static | mimeDetectCharset ($str) |
Detect MIME charset. | |
Public Attributes | |
const | TYPE_OCTETSTREAM = 'application/octet-stream' |
const | TYPE_TEXT = 'text/plain' |
const | TYPE_HTML = 'text/html' |
const | ENCODING_7BIT = '7bit' |
const | ENCODING_8BIT = '8bit' |
const | ENCODING_QUOTEDPRINTABLE = 'quoted-printable' |
const | ENCODING_BASE64 = 'base64' |
const | DISPOSITION_ATTACHMENT = 'attachment' |
const | DISPOSITION_INLINE = 'inline' |
const | LINELENGTH = 72 |
const | LINEEND = "\n" |
const | MULTIPART_ALTERNATIVE = 'multipart/alternative' |
const | MULTIPART_MIXED = 'multipart/mixed' |
const | MULTIPART_RELATED = 'multipart/related' |
const | CHARSET_REGEX = '#=\?(?P<charset>[\x21\x23-\x26\x2a\x2b\x2d\x5e\5f\60\x7b-\x7ea-zA-Z0-9]+)\?(?P<encoding>[\x21\x23-\x26\x2a\x2b\x2d\x5e\5f\60\x7b-\x7ea-zA-Z0-9]+)\?(?P<text>[\x21-\x3e\x40-\x7e]+)#' |
Static Public Attributes | |
static | $qpKeys |
static | $qpReplaceValues |
static | $qpKeysString |
Protected Attributes | |
$boundary | |
Static Protected Attributes | |
static | $makeUnique = 0 |
Support class for MultiPart Mime Messages.
__construct | ( | $boundary = null | ) |
Constructor.
null | string | $boundary | public |
boundary | ( | ) |
Return a MIME boundary.
public
boundaryLine | ( | $EOL = self::LINEEND | ) |
|
static |
|
static |
Encode a given string in base64 encoding and break lines according to the maximum linelength.
string | $str | |
int | $lineLength | Defaults to LINELENGTH |
string | $lineEnd | Defaults to LINEEND |
|
static |
Encode a given string in mail header compatible base64 encoding.
string | $str | |
string | $charset | |
int | $lineLength | Defaults to LINELENGTH |
string | $lineEnd | Defaults to LINEEND |
|
static |
Encode a given string with the QUOTED_PRINTABLE mechanism and wrap the lines.
string | $str | |
int | $lineLength | Defaults to LINELENGTH |
string | $lineEnd | Defaults to LINEEND |
|
static |
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.
string | $str | |
string | $charset | |
int | $lineLength | Defaults to LINELENGTH |
string | $lineEnd | Defaults to LINEEND |
|
static |
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.
string | $str |
|
static |
Detect MIME charset.
Extract parts according to https://tools.ietf.org/html/rfc2047#section-2
string | $str |
mimeEnd | ( | $EOL = self::LINEEND | ) |
|
protected |
|
staticprotected |
|
static |
|
static |
|
static |
const CHARSET_REGEX = '#=\?(?P<charset>[\x21\x23-\x26\x2a\x2b\x2d\x5e\5f\60\x7b-\x7ea-zA-Z0-9]+)\?(?P<encoding>[\x21\x23-\x26\x2a\x2b\x2d\x5e\5f\60\x7b-\x7ea-zA-Z0-9]+)\?(?P<text>[\x21-\x3e\x40-\x7e]+)#' |
const DISPOSITION_ATTACHMENT = 'attachment' |
const DISPOSITION_INLINE = 'inline' |
const ENCODING_7BIT = '7bit' |
const ENCODING_8BIT = '8bit' |
const ENCODING_BASE64 = 'base64' |
const ENCODING_QUOTEDPRINTABLE = 'quoted-printable' |
const LINEEND = "\n" |
const LINELENGTH = 72 |
const MULTIPART_ALTERNATIVE = 'multipart/alternative' |
const MULTIPART_MIXED = 'multipart/mixed' |
const MULTIPART_RELATED = 'multipart/related' |
const TYPE_HTML = 'text/html' |
const TYPE_OCTETSTREAM = 'application/octet-stream' |
const TYPE_TEXT = 'text/plain' |