Properties

$content

$content : string

Message part content

Type

string

$headers

$headers : array

Headers

Type

array

$contentType

$contentType : string

Content type

Type

string

$charSet

$charSet : string

Character set

Type

string

$id

$id : string

Message or part ID

Type

string

$idHeader

$idHeader : string

Message or part ID header name

Type

string

Methods

__construct()

__construct() 

Instantiate the message object

getContent()

getContent() : string

Get message part content

Returns

string

setContent()

setContent(string  $content) : \Pop\Mail\Message\AbstractPart

Set message part content

Parameters

string $content

Returns

\Pop\Mail\Message\AbstractPart

getBody()

getBody() : string

Get body

Returns

string

render()

render() : string

Render

Returns

string

renderAsLines()

renderAsLines() : array

Render as an array of lines

Returns

array

addHeader()

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

Add message part header

Parameters

string $header
string $value

Returns

\Pop\Mail\Message\AbstractMessage

addHeaders()

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

Add message part headers

Parameters

array $headers

Returns

\Pop\Mail\Message\AbstractMessage

hasHeader()

hasHeader(string  $header) : boolean

Determine if message part has header

Parameters

string $header

Returns

boolean

getHeader()

getHeader(string  $header) : string

Get message part header

Parameters

string $header

Returns

string

getHeaders()

getHeaders() : array

Get all message part headers

Returns

array

getContentType()

getContentType() : string

Get message part content type

Returns

string

getCharSet()

getCharSet() : string

Get message part character set

Returns

string

setContentType()

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

Set message part content type

Parameters

string $contentType

Returns

\Pop\Mail\Message\AbstractMessage

setCharSet()

setCharSet(string  $charSet) : \Pop\Mail\Message\AbstractMessage

Set message part character set

Parameters

string $charSet

Returns

\Pop\Mail\Message\AbstractMessage

getHeaderAsString()

getHeaderAsString(string  $header) : string

Get header as string

Parameters

string $header

Returns

string

getHeadersAsString()

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

Get all message headers as string

Parameters

array $omit

Returns

string

setIdHeader()

setIdHeader(string  $header) : \Pop\Mail\Message\AbstractMessage

Set the ID header name

Parameters

string $header

Returns

\Pop\Mail\Message\AbstractMessage

getIdHeader()

getIdHeader() : string

Get the ID

Returns

string

getId()

getId() : string

Get the ID

Returns

string

generateId()

generateId() : string

Generate a new ID

Returns

string

__toString()

__toString() : string

Render message to string

Returns

string

getRandomId()

getRandomId() : string

Returns a random ID

Returns

string