trait HasParsedMessage (View source)

Properties

protected IMessage|null $message

The parsed message.

Methods

array
headers()

Get all headers from the message.

IHeader|null
header(string $name, int $offset = 0)

Get a header from the message.

array
addresses(string $header)

Get addresses from the given header.

IMessage
parse()

Parse the message into a MailMimeMessage instance.

bool
isEmpty()

Determine if the message is empty.

string
__toString()

Get the string representation of the message.

Details

array headers()

Get all headers from the message.

Return Value

array

IHeader|null header(string $name, int $offset = 0)

Get a header from the message.

Parameters

string $name
int $offset

Return Value

IHeader|null

array addresses(string $header)

Get addresses from the given header.

Parameters

string $header

Return Value

array

IMessage parse()

Parse the message into a MailMimeMessage instance.

Return Value

IMessage

abstract bool isEmpty()

Determine if the message is empty.

Return Value

bool

abstract string __toString()

Get the string representation of the message.

Return Value

string