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 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 |
string | EOL |
"\r\n" |
line 46 |
int | LINE_LENGTH |
76 |
line 47 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 221 addPartpublic MailMimePart addPart ([MailMimePart $part = Adds or creates new multipart.
|
||||||||||||||||||
line 120 clearHeaderpublic MailMimePart clearHeader (string $name) Removes a header.
|
||||||||||||||||||
line 371 encodeQuotedPrintablepublic static string encodeQuotedPrintable (string $s) Converts a 8 bit string to a quoted-printable string.
|
||||||||||||||||||
line 260 generateMessagepublic string generateMessage () Returns encoded message.
|
||||||||||||||||||
line 245 getBodypublic mixed getBody () Gets textual body.
|
||||||||||||||||||
line 134 getEncodedHeaderpublic string getEncodedHeader (string $name, [string $charset = Returns an encoded header.
|
||||||||||||||||||
line 209 getEncodingpublic string getEncoding () Returns Content-Transfer-Encoding header.
|
||||||||||||||||||
line 108 getHeaderpublic mixed getHeader (string $name) Returns a header.
|
||||||||||||||||||
line 171 getHeaderspublic array getHeaders () Returns all headers.
|
||||||||||||||||||
line 233 setBodypublic MailMimePart setBody (mixed $body) Sets textual body.
|
||||||||||||||||||
line 184 setContentTypepublic MailMimePart setContentType (string $contentType, [string $charset = Sets Content-Type header.
|
||||||||||||||||||
line 197 setEncodingpublic MailMimePart setEncoding (string $encoding) Sets Content-Transfer-Encoding header.
|
||||||||||||||||||
line 67 setHeaderpublic MailMimePart setHeader (string $name, string|array $value, [bool $append = Sets a header.
|