MimePart
class MimePart
MIME message part.
Constants
EncodingBase64 |
encoding |
Encoding7Bit |
encoding |
Encoding8Bit |
encoding |
EncodingQuotedPrintable |
encoding |
internal EOL |
|
LineLength |
|
private SequenceValue |
value (RFC 2231), encoded-word (RFC 2047) |
private SequenceWord |
value (RFC 2231), encoded-word (RFC 2047) |
Methods
mixed
getHeader(string $name)
Returns a header.
clearHeader(string $name)
Removes a header.
string|null
getEncodedHeader(string $name)
Returns an encoded header.
array
getHeaders()
Returns all headers.
setContentType(string $contentType, string|null $charset = null)
Sets Content-Type header.
setEncoding(string $encoding)
Sets Content-Transfer-Encoding header.
string
getEncoding()
Returns Content-Transfer-Encoding header.
string
getBody()
Gets textual body.
string
getEncodedMessage()
Returns encoded message.
Details
at line 51
MimePart
setHeader(string $name, string|array|null $value, bool $append = false)
Sets a header.
at line 95
mixed
getHeader(string $name)
Returns a header.
at line 104
MimePart
clearHeader(string $name)
Removes a header.
at line 114
string|null
getEncodedHeader(string $name)
Returns an encoded header.
at line 147
array
getHeaders()
Returns all headers.
at line 156
MimePart
setContentType(string $contentType, string|null $charset = null)
Sets Content-Type header.
at line 166
MimePart
setEncoding(string $encoding)
Sets Content-Transfer-Encoding header.
at line 176
string
getEncoding()
Returns Content-Transfer-Encoding header.
at line 194
MimePart
setBody(string $body)
Sets textual body.
at line 204
string
getBody()
Gets textual body.
at line 216
string
getEncodedMessage()
Returns encoded message.
Traits
SmartObject