Class HeaderWrap

Summary

Fully Qualified Name: Laminas\Mail\Header\HeaderWrap

Description

Utility class used for creating wrapped or MIME-encoded versions of header values.

Methods

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

Method Details

canBeEncoded()

Test if is possible apply MIME-encoding

Parameter Name Type Description
$value string

Returns: bool

mimeDecodeValue()

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

mimeEncodeValue()

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()

Wrap a long header line

Parameter Name Type Description
$value string
$header \HeaderInterface

Returns: string

Top