MimePart
class MimePart
MIME message part.
Constants
ENCODING_BASE64 |
encoding |
ENCODING_7BIT |
encoding |
ENCODING_8BIT |
encoding |
ENCODING_QUOTED_PRINTABLE |
encoding |
internal EOL |
|
LINE_LENGTH |
|
private SEQUENCE_VALUE |
|
private SEQUENCE_WORD |
|
Properties
string | $body |
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 $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 56
MimePart
setHeader(string $name, string|array|null $value, bool $append = false)
Sets a header.
at line 100
mixed
getHeader(string $name)
Returns a header.
at line 110
MimePart
clearHeader(string $name)
Removes a header.
at line 120
string|null
getEncodedHeader(string $name)
Returns an encoded header.
at line 151
array
getHeaders()
Returns all headers.
at line 161
MimePart
setContentType(string $contentType, string $charset = null)
Sets Content-Type header.
at line 172
MimePart
setEncoding(string $encoding)
Sets Content-Transfer-Encoding header.
at line 182
string
getEncoding()
Returns Content-Transfer-Encoding header.
at line 201
MimePart
setBody(string $body)
Sets textual body.
at line 211
string
getBody()
Gets textual body.
at line 223
string
getEncodedMessage()
Returns encoded message.
Traits
Strict class for better experience.