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

category Zend
package Zend_Mail
subpackage Header

 Methods

MIME-encode a value

mimeEncodeValue(string $value, string $encoding, int $lineLength) : string

Performs quoted-printable encoding on a value, setting maximum line-length to 998.

Parameters

$value

string

$encoding

string

$lineLength

int

maximum line-length, by default 998

Returns

stringReturns the mime encode value without the last line ending

Wrap a long header line

wrap(string $value, \Zend\Mail\Header\HeaderInterface $header) : string

Parameters

$value

string

Returns

string

Wrap a structured header line

wrapStructuredHeader(string $value, \Zend\Mail\Header\StructuredInterface $header) : string

Parameters

$value

string

Returns

string

Wrap an unstructured header line

wrapUnstructuredHeader(string $value, \Zend\Mail\Header\HeaderInterface $header) : string

Wrap at 78 characters or before, based on whitespace.

Parameters

$value

string

Returns

string