Support class for MultiPart Mime Messages.
More...
|
static | isPrintable ($str) |
| Check if the given string is "printable". More...
|
|
static | encodeQuotedPrintable ($str, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
| Encode a given string with the QUOTED_PRINTABLE mechanism and wrap the lines. More...
|
|
static | encodeQuotedPrintableHeader ($str, $charset, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND, $headerNameSize=0) |
| Encode a given string with the QUOTED_PRINTABLE mechanism for Mail Headers. More...
|
|
static | encodeBase64Header ($str, $charset, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
| Encode a given string in mail header compatible base64 encoding. More...
|
|
static | encodeBase64 ($str, $lineLength=self::LINELENGTH, $lineEnd=self::LINEEND) |
| Encode a given string in base64 encoding and break lines according to the maximum linelength. More...
|
|
static | encode ($str, $encoding, $EOL=self::LINEEND) |
| Encode the given string with the given encoding. More...
|
|
static | mimeDetectCharset ($str) |
| Detect MIME charset. More...
|
|
Support class for MultiPart Mime Messages.
Definition at line 36 of file Mime.php.
Laminas\Mime\Mime::__construct |
( |
|
$boundary = null | ) |
|
Constructor.
- Parameters
-
null | string | $boundary | public |
Definition at line 640 of file Mime.php.
Laminas\Mime\Mime::boundary |
( |
| ) |
|
Return a MIME boundary.
public
- Returns
- string
Definition at line 683 of file Mime.php.
Laminas\Mime\Mime::boundaryLine |
( |
|
$EOL = self::LINEEND | ) |
|
Return a MIME boundary line.
- Parameters
-
string | $EOL | Defaults to LINEEND public |
- Returns
- string
Definition at line 695 of file Mime.php.
static Laminas\Mime\Mime::encode |
( |
|
$str, |
|
|
|
$encoding, |
|
|
|
$EOL = self::LINEEND |
|
) |
| |
|
static |
Encode the given string with the given encoding.
- Parameters
-
string | $str | |
string | $encoding | |
string | $EOL | EOL string; defaults to LINEEND |
- Returns
- string
Definition at line 660 of file Mime.php.
static Laminas\Mime\Mime::encodeBase64 |
( |
|
$str, |
|
|
|
$lineLength = self::LINELENGTH , |
|
|
|
$lineEnd = self::LINEEND |
|
) |
| |
|
static |
Encode a given string in base64 encoding and break lines according to the maximum linelength.
- Parameters
-
- Returns
- string
Definition at line 625 of file Mime.php.
static Laminas\Mime\Mime::encodeBase64Header |
( |
|
$str, |
|
|
|
$charset, |
|
|
|
$lineLength = self::LINELENGTH , |
|
|
|
$lineEnd = self::LINEEND |
|
) |
| |
|
static |
Encode a given string in mail header compatible base64 encoding.
- Parameters
-
string | $str | |
string | $charset | |
int | $lineLength | Defaults to LINELENGTH |
string | $lineEnd | Defaults to LINEEND |
- Returns
- string
Definition at line 600 of file Mime.php.
static Laminas\Mime\Mime::encodeQuotedPrintable |
( |
|
$str, |
|
|
|
$lineLength = self::LINELENGTH , |
|
|
|
$lineEnd = self::LINEEND |
|
) |
| |
|
static |
Encode a given string with the QUOTED_PRINTABLE mechanism and wrap the lines.
- Parameters
-
- Returns
- string
Definition at line 428 of file Mime.php.
static Laminas\Mime\Mime::encodeQuotedPrintableHeader |
( |
|
$str, |
|
|
|
$charset, |
|
|
|
$lineLength = self::LINELENGTH , |
|
|
|
$lineEnd = self::LINEEND , |
|
|
|
$headerNameSize = 0 |
|
) |
| |
|
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.
- Parameters
-
string | $str | |
string | $charset | |
int | $lineLength | Defaults to LINELENGTH |
string | $lineEnd | Defaults to LINEEND |
positive-int | 0 | $headerNameSize | When folding a line, it is necessary to calculate the length of the entire line (together with the header name). Therefore, you can specify the header name and colon length in this argument to fold the string properly. |
- Returns
- string
Definition at line 511 of file Mime.php.
static Laminas\Mime\Mime::isPrintable |
( |
|
$str | ) |
|
|
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.
- Parameters
-
- Returns
- bool
Definition at line 415 of file Mime.php.
static Laminas\Mime\Mime::mimeDetectCharset |
( |
|
$str | ) |
|
|
static |
Laminas\Mime\Mime::mimeEnd |
( |
|
$EOL = self::LINEEND | ) |
|
Return MIME ending.
- Parameters
-
string | $EOL | Defaults to LINEEND public |
- Returns
- string
Definition at line 707 of file Mime.php.
Laminas\Mime\Mime::$boundary |
|
protected |
Laminas\Mime\Mime::$makeUnique = 0 |
|
staticprotected |
Laminas\Mime\Mime::$qpKeys |
|
static |
Laminas\Mime\Mime::$qpKeysString |
|
static |
Initial value:=
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"
Definition at line 402 of file Mime.php.
Laminas\Mime\Mime::$qpReplaceValues |
|
static |
const Laminas\Mime\Mime::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 Laminas\Mime\Mime::DISPOSITION_ATTACHMENT = 'attachment' |
const Laminas\Mime\Mime::DISPOSITION_INLINE = 'inline' |
const Laminas\Mime\Mime::ENCODING_7BIT = '7bit' |
const Laminas\Mime\Mime::ENCODING_8BIT = '8bit' |
const Laminas\Mime\Mime::ENCODING_BASE64 = 'base64' |
const Laminas\Mime\Mime::ENCODING_QUOTEDPRINTABLE = 'quoted-printable' |
const Laminas\Mime\Mime::LINEEND = "\n" |
const Laminas\Mime\Mime::LINELENGTH = 72 |
const Laminas\Mime\Mime::MESSAGE_DELIVERY_STATUS = 'message/delivery-status' |
const Laminas\Mime\Mime::MESSAGE_RFC822 = 'message/rfc822' |
const Laminas\Mime\Mime::MULTIPART_ALTERNATIVE = 'multipart/alternative' |
const Laminas\Mime\Mime::MULTIPART_MIXED = 'multipart/mixed' |
const Laminas\Mime\Mime::MULTIPART_RELATED = 'multipart/related' |
const Laminas\Mime\Mime::MULTIPART_RELATIVE = 'multipart/relative' |
const Laminas\Mime\Mime::MULTIPART_REPORT = 'multipart/report' |
const Laminas\Mime\Mime::TYPE_ENRICHED = 'text/enriched' |
const Laminas\Mime\Mime::TYPE_HTML = 'text/html' |
const Laminas\Mime\Mime::TYPE_OCTETSTREAM = 'application/octet-stream' |
const Laminas\Mime\Mime::TYPE_TEXT = 'text/plain' |
const Laminas\Mime\Mime::TYPE_XML = 'text/xml' |
The documentation for this class was generated from the following file:
- engine/vendor_classes/Laminas/Mime/Mime.php