Documentation

MessageInterface
in

Mail message interface

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.0.0

Table of Contents

Methods

__toString()  : string
Render to string
addHeader()  : MessageInterface
Add header
addHeaders()  : MessageInterface
Add headers
getBody()  : string|null
Get body
getCharSet()  : string|null
Get character set
getContentType()  : string|null
Get content type
getHeader()  : string
Get header
getHeaderAsString()  : string|null
Get header as string
getHeaders()  : array<string|int, mixed>
Get all headers
getHeadersAsString()  : string|null
Get all headers as string
hasHeader()  : bool
Determine if message has header
render()  : string
Render
renderAsLines()  : array<string|int, mixed>
Render as an array of lines
setCharSet()  : MessageInterface
Set character set
setContentType()  : MessageInterface
Set content type

Methods

__toString()

Render to string

public __toString() : string
Return values
string

getBody()

Get body

public getBody() : string|null
Return values
string|null

getCharSet()

Get character set

public getCharSet() : string|null
Return values
string|null

getContentType()

Get content type

public getContentType() : string|null
Return values
string|null

getHeader()

Get header

public getHeader(string $header) : string
Parameters
$header : string
Return values
string

getHeaderAsString()

Get header as string

public getHeaderAsString(string $header) : string|null
Parameters
$header : string
Return values
string|null

getHeaders()

Get all headers

public getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHeadersAsString()

Get all headers as string

public getHeadersAsString([array<string|int, mixed> $omitHeaders = [] ]) : string|null
Parameters
$omitHeaders : array<string|int, mixed> = []
Return values
string|null

hasHeader()

Determine if message has header

public hasHeader(string $header) : bool
Parameters
$header : string
Return values
bool

renderAsLines()

Render as an array of lines

public renderAsLines() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results