Class MailMimePart (namespace Nette\Mail)
MIME message part.
Object | --MailMimePart
Direct Known Sub-classes:
Public Method Summary | |
---|---|
MailMimePart |
Adds or creates new multipart.
|
MailMimePart |
clearHeader
(string $name)
Removes a header.
|
static string |
encodeQuotedPrintable
(string $s)
Converts a 8 bit string to a quoted-printable string.
|
string |
Returns encoded message.
|
mixed |
getBody
()
Gets textual body.
|
string |
getEncodedHeader
(string $name, [string $charset =
'UTF-8' ])
Returns an encoded header.
|
string |
getEncoding
()
Returns Content-Transfer-Encoding header.
|
mixed |
getHeader
(string $name)
Returns a header.
|
array |
getHeaders
()
Returns all headers.
|
MailMimePart |
setBody
(mixed $body)
Sets textual body.
|
MailMimePart |
setContentType
(string $contentType, [string $charset =
NULL ])
Sets Content-Type header.
|
MailMimePart |
setEncoding
(string $encoding)
Sets Content-Transfer-Encoding header.
|
MailMimePart |
setHeader
(string $name, string|array $value, [bool $append =
FALSE ])
Sets a header.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Constant Summary | |||
---|---|---|---|
string | ENCODING_7BIT |
'7bit' |
line 29 encoding |
string | ENCODING_8BIT |
'8bit' |
line 30 encoding |
string | ENCODING_BASE64 |
'base64' |
line 28 encoding |
string | ENCODING_QUOTED_PRINTABLE |
'quoted-printable' |
line 31 encoding |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 211 addPartpublic MailMimePart addPart ([MailMimePart $part = Adds or creates new multipart.
|
||||||||||||||||||
line 110 clearHeaderpublic MailMimePart clearHeader (string $name) Removes a header.
|
||||||||||||||||||
line 361 encodeQuotedPrintablepublic static string encodeQuotedPrintable (string $s) Converts a 8 bit string to a quoted-printable string.
|
||||||||||||||||||
line 250 generateMessagepublic string generateMessage () Returns encoded message.
|
||||||||||||||||||
line 235 getBodypublic mixed getBody () Gets textual body.
|
||||||||||||||||||
line 124 getEncodedHeaderpublic string getEncodedHeader (string $name, [string $charset = Returns an encoded header.
|
||||||||||||||||||
line 199 getEncodingpublic string getEncoding () Returns Content-Transfer-Encoding header.
|
||||||||||||||||||
line 98 getHeaderpublic mixed getHeader (string $name) Returns a header.
|
||||||||||||||||||
line 161 getHeaderspublic array getHeaders () Returns all headers.
|
||||||||||||||||||
line 223 setBodypublic MailMimePart setBody (mixed $body) Sets textual body.
|
||||||||||||||||||
line 174 setContentTypepublic MailMimePart setContentType (string $contentType, [string $charset = Sets Content-Type header.
|
||||||||||||||||||
line 187 setEncodingpublic MailMimePart setEncoding (string $encoding) Sets Content-Transfer-Encoding header.
|
||||||||||||||||||
line 57 setHeaderpublic MailMimePart setHeader (string $name, string|array $value, [bool $append = Sets a header.
|