Class NMailMimePart (namespace NMail)
MIME message part.
NObject | --NMailMimePart
Direct Known Sub-classes:
Public Method Summary | |
---|---|
NMailMimePart |
Adds or creates new multipart.
|
NMailMimePart |
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.
|
NMailMimePart |
setBody
(mixed $body)
Sets textual body.
|
NMailMimePart |
setContentType
(string $contentType, [string $charset =
NULL ])
Sets Content-Type header.
|
NMailMimePart |
setEncoding
(string $encoding)
Sets Content-Transfer-Encoding header.
|
NMailMimePart |
setHeader
(string $name, string|array $value, [bool $append =
FALSE ])
Sets a header.
|
Methods Inherited From NObject |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Constant Summary | |||
---|---|---|---|
string | ENCODING_7BIT |
'7bit' |
line 41 encoding |
string | ENCODING_8BIT |
'8bit' |
line 42 encoding |
string | ENCODING_BASE64 |
'base64' |
line 40 encoding |
string | ENCODING_QUOTED_PRINTABLE |
'quoted-printable' |
line 43 encoding |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 223 addPartpublic NMailMimePart addPart ([NMailMimePart $part = Adds or creates new multipart.
|
||||||||||||||||||
line 122 clearHeaderpublic NMailMimePart clearHeader (string $name) Removes a header.
|
||||||||||||||||||
line 373 encodeQuotedPrintablepublic static string encodeQuotedPrintable (string $s) Converts a 8 bit string to a quoted-printable string.
|
||||||||||||||||||
line 262 generateMessagepublic string generateMessage () Returns encoded message.
|
||||||||||||||||||
line 247 getBodypublic mixed getBody () Gets textual body.
|
||||||||||||||||||
line 136 getEncodedHeaderpublic string getEncodedHeader (string $name, [string $charset = Returns an encoded header.
|
||||||||||||||||||
line 211 getEncodingpublic string getEncoding () Returns Content-Transfer-Encoding header.
|
||||||||||||||||||
line 110 getHeaderpublic mixed getHeader (string $name) Returns a header.
|
||||||||||||||||||
line 173 getHeaderspublic array getHeaders () Returns all headers.
|
||||||||||||||||||
line 235 setBodypublic NMailMimePart setBody (mixed $body) Sets textual body.
|
||||||||||||||||||
line 186 setContentTypepublic NMailMimePart setContentType (string $contentType, [string $charset = Sets Content-Type header.
|
||||||||||||||||||
line 199 setEncodingpublic NMailMimePart setEncoding (string $encoding) Sets Content-Transfer-Encoding header.
|
||||||||||||||||||
line 69 setHeaderpublic NMailMimePart setHeader (string $name, string|array $value, [bool $append = Sets a header.
|