Zymba Documentation
MIME
Text
object @MIME() {
createMultipart(object $parts, string $boundary, string $preamble, string $epilog): string {}
fromBase64(string $string): string {}
fromBase64URL(string $string): string {}
fromEncodedWord(string $string): string {}
fromQuotedPrintable(string $string): string {}
isPrintable(string $string): bool {}
parseMultipart(string $body, ?string $boundary): object {}
toBase64(string $string): string {}
toBase64Raw(string $string): string {}
toBase64URL(string $string): string {}
toEncodedWord(string $string): string {}
toQuotedPrintable(string $string): string {}
}
Static MIME related functions.
Functions
Encodes a string without line breaks according to RFC 2045 using a 65-character printable subset of US-ASCII to represent arbitrary byte sequences, but using an URL and filename safe alphabet as per RFC 4648.
CODE
@MIME.toBase64URL(string $string): string
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| string | string | "" |
Returns
| Type | Value |
|---|---|
string |
Encodes a string in lines of no more than 76 bytes according to RFC 2045 by replacing every unprintable character with an equal sign ("=") followed by a 2-character hexadecimal number.
CODE
@MIME.toQuotedPrintable(string $string): string
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| string | string | "" |
Returns
| Type | Value |
|---|---|
string |