Fully Qualified Name: | Laminas\Mail\Header\HeaderWrap |
Utility class used for creating wrapped or MIME-encoded versions of header values.
Name | Description | Defined By |
---|---|---|
canBeEncoded() | Test if is possible apply MIME-encoding | HeaderWrap |
mimeDecodeValue() | MIME-decode a value | HeaderWrap |
mimeEncodeValue() | MIME-encode a value | HeaderWrap |
wrap() | Wrap a long header line | HeaderWrap |
Test if is possible apply MIME-encoding
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: bool
MIME-decode a value
Performs quoted-printable decoding on a value.
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: string Returns the mime encode value without the last line ending
MIME-encode a value
Performs quoted-printable encoding on a value, setting maximum line-length to 998.
Parameter Name | Type | Description |
---|---|---|
$value | string | |
$encoding | string | |
$lineLength | int | maximum |
Returns: string Returns the mime encode value without the last line ending
Wrap a long header line
Parameter Name | Type | Description |
---|---|---|
$value | string | |
$header | \HeaderInterface |
Returns: string