package Default

 Methods

Factory to generate a header object from a string

fromString(string $headerLine) : \Zend\Mail\Header\HeaderInterface
Static
see
fluent This method is part of a fluent interface and will return the same instance

Parameters

$headerLine

string

Exceptions

\Zend\Mail\Header\Exception\InvalidArgumentException If the header does not match with RFC 2822 definition.

Returns

\Zend\Mail\Header\HeaderInterface

Get header encoding

getEncoding() : string

Returns

string

Retrieve header name

getFieldName() : string

Returns

string

Retrieve header value

getFieldValue(boolean $format = \Zend\Mail\Header\HeaderInterface::FORMAT_RAW) : string

Parameters

$format

boolean

Return the value in Mime::Encoded or in Raw format

Returns

string

Set header encoding

setEncoding(string $encoding) : \Zend\Mail\Header\HeaderInterface
fluent This method is part of a fluent interface and will return the same instance

Parameters

$encoding

string

Returns

\Zend\Mail\Header\HeaderInterface

Cast to string

toString() : string

Returns in form of "NAME: VALUE"

Returns

string

 Constants

 

Format value in Mime-Encoding if not US-ASCII encoding is used

FORMAT_ENCODED = true : boolean
 

Return value with the interval ZF2 value (UTF-8 non-encoded)

FORMAT_RAW = false : boolean