\Pop\Mail\MessageMessageInterface

Mail message interface

Summary

Methods
Constants
addHeader()
addHeaders()
hasHeader()
getHeader()
getHeaders()
getHeaderAsString()
getHeadersAsString()
getContentType()
getCharSet()
getBody()
setContentType()
setCharSet()
render()
renderAsLines()
__toString()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addHeader()

addHeader(string  $header, string  $value) : \Pop\Mail\Message\AbstractPart

Add header

Parameters

string $header
string $value

Returns

\Pop\Mail\Message\AbstractPart

addHeaders()

addHeaders(array  $headers) : \Pop\Mail\Message\AbstractPart

Add headers

Parameters

array $headers

Returns

\Pop\Mail\Message\AbstractPart

hasHeader()

hasHeader(string  $header) : boolean

Determine if message has header

Parameters

string $header

Returns

boolean

getHeader()

getHeader(string  $header) : string

Get header

Parameters

string $header

Returns

string

getHeaders()

getHeaders() : array

Get all headers

Returns

array

getHeaderAsString()

getHeaderAsString(string  $header) : string

Get header as string

Parameters

string $header

Returns

string

getHeadersAsString()

getHeadersAsString(array  $omit = array()) : string

Get all headers as string

Parameters

array $omit

Returns

string

getContentType()

getContentType() : string

Get content type

Returns

string

getCharSet()

getCharSet() : string

Get character set

Returns

string

getBody()

getBody() : string

Get body

Returns

string

setContentType()

setContentType(string  $contentType) : \Pop\Mail\Message\MessageInterface

Set content type

Parameters

string $contentType

Returns

\Pop\Mail\Message\MessageInterface

render()

render() : string

Render

Returns

string

renderAsLines()

renderAsLines() : array

Render as an array of lines

Returns

array

__toString()

__toString() : string

Render to string

Returns

string