trait HasMessageAccessors (View source)

Methods

IMessage
parse()

Parse the message into a MailMimeMessage instance.

array
addresses(string $header)

Get addresses from the given header.

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

Get a header from the message.

CarbonInterface|null
date()

Get the message date and time.

string|null
messageId()

Get the message's message-id.

string|null
subject()

Get the message's subject.

Address|null
from()

Get the FROM address.

Address|null
sender()

Get the SENDER address.

Address|null
replyTo()

Get the REPLY-TO address.

array
inReplyTo()

Get the IN-REPLY-TO message identifier(s).

array
to()

Get the TO addresses.

array
cc()

Get the CC addresses.

array
bcc()

Get the BCC addresses.

string|null
html()

Get the message's HTML content.

string|null
text()

Get the message's text content.

array
attachments()

Get the message's attachments.

bool
hasAttachments()

Determine if the message has attachments.

int
attachmentCount()

Get the count of attachments.

Details

abstract IMessage parse()

Parse the message into a MailMimeMessage instance.

Return Value

IMessage

abstract array addresses(string $header)

Get addresses from the given header.

Parameters

string $header

Return Value

array

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

Get a header from the message.

Parameters

string $name
int $offset

Return Value

IHeader|null

CarbonInterface|null date()

Get the message date and time.

Return Value

CarbonInterface|null

string|null messageId()

Get the message's message-id.

Return Value

string|null

string|null subject()

Get the message's subject.

Return Value

string|null

Address|null from()

Get the FROM address.

Return Value

Address|null

Address|null sender()

Get the SENDER address.

Return Value

Address|null

Address|null replyTo()

Get the REPLY-TO address.

Return Value

Address|null

array inReplyTo()

Get the IN-REPLY-TO message identifier(s).

Return Value

array

array to()

Get the TO addresses.

Return Value

array

array cc()

Get the CC addresses.

Return Value

array

array bcc()

Get the BCC addresses.

Return Value

array

string|null html()

Get the message's HTML content.

Return Value

string|null

string|null text()

Get the message's text content.

Return Value

string|null

array attachments()

Get the message's attachments.

Return Value

array

bool hasAttachments()

Determine if the message has attachments.

Return Value

bool

int attachmentCount()

Get the count of attachments.

Return Value

int