interface MessageInterface implements FlaggableInterface, Stringable (View source)

Methods

void
markRead()

Mark the message as read. Alias for markSeen.

void
markUnread()

Mark the message as unread. Alias for unmarkSeen.

void
markSeen()

Mark the message as seen.

void
unmarkSeen()

Unmark the seen flag.

void
markAnswered()

Mark the message as answered.

void
unmarkAnswered()

Unmark the answered flag.

void
markFlagged()

Mark the message as flagged.

void
unmarkFlagged()

Unmark the flagged flag.

void
markDeleted(bool $expunge = false)

Mark the message as deleted.

void
unmarkDeleted()

Unmark the deleted flag.

void
markDraft()

Mark the message as a draft.

void
unmarkDraft()

Unmark the draft flag.

void
markRecent()

Mark the message as recent.

void
unmarkRecent()

Unmark the recent flag.

bool
isSeen()

Determine if the message is marked as seen.

bool
isAnswered()

Determine if the message is marked as answered.

bool
isFlagged()

Determine if the message is flagged.

bool
isDeleted()

Determine if the message is marked as deleted.

bool
isDraft()

Determine if the message is marked as a draft.

bool
isRecent()

Determine if the message is marked as recent.

array
flags()

Get the message's flags.

bool
hasFlag(BackedEnum|string $flag)

Determine if the message has the given flag.

void
flag(BackedEnum|string $flag, string $operation, bool $expunge = false)

Add or remove a flag from the message.

int
uid()

Get the message's identifier.

int|null
size()

Get the message's size in bytes (RFC822.SIZE).

CarbonInterface|null
date()

Get the message date and time.

string|null
subject()

Get the message's subject.

Address|null
from()

Get the 'From' address.

Address|null
sender()

Get the 'Sender' address.

string|null
messageId()

Get the message's 'Message-ID'.

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.

array
attachments()

Get the message's attachments.

bool
hasAttachments()

Determine if the message has attachments.

int
attachmentCount()

Get the count of attachments.

array
addresses(string $header)

Get addresses from the given header.

string|null
html()

Get the message's HTML content.

string|null
text()

Get the message's text content.

array
headers()

Get all headers from the message.

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

Get a header from the message.

IMessage
parse()

Parse the message into a MailMimeMessage instance.

bool
is(MessageInterface $message)

Determine if the message is the same as another message.

string
__toString()

Get the string representation of the message.

Details

void markRead()

Mark the message as read. Alias for markSeen.

Return Value

void

void markUnread()

Mark the message as unread. Alias for unmarkSeen.

Return Value

void

void markSeen()

Mark the message as seen.

Return Value

void

void unmarkSeen()

Unmark the seen flag.

Return Value

void

void markAnswered()

Mark the message as answered.

Return Value

void

void unmarkAnswered()

Unmark the answered flag.

Return Value

void

void markFlagged()

Mark the message as flagged.

Return Value

void

void unmarkFlagged()

Unmark the flagged flag.

Return Value

void

void markDeleted(bool $expunge = false)

Mark the message as deleted.

Parameters

bool $expunge

Return Value

void

void unmarkDeleted()

Unmark the deleted flag.

Return Value

void

void markDraft()

Mark the message as a draft.

Return Value

void

void unmarkDraft()

Unmark the draft flag.

Return Value

void

void markRecent()

Mark the message as recent.

Return Value

void

void unmarkRecent()

Unmark the recent flag.

Return Value

void

bool isSeen()

Determine if the message is marked as seen.

Return Value

bool

bool isAnswered()

Determine if the message is marked as answered.

Return Value

bool

bool isFlagged()

Determine if the message is flagged.

Return Value

bool

bool isDeleted()

Determine if the message is marked as deleted.

Return Value

bool

bool isDraft()

Determine if the message is marked as a draft.

Return Value

bool

bool isRecent()

Determine if the message is marked as recent.

Return Value

bool

array flags()

Get the message's flags.

Return Value

array

bool hasFlag(BackedEnum|string $flag)

Determine if the message has the given flag.

Parameters

BackedEnum|string $flag

Return Value

bool

void flag(BackedEnum|string $flag, string $operation, bool $expunge = false)

Add or remove a flag from the message.

Parameters

BackedEnum|string $flag
string $operation
bool $expunge

Return Value

void

int uid()

Get the message's identifier.

Return Value

int

int|null size()

Get the message's size in bytes (RFC822.SIZE).

Return Value

int|null

CarbonInterface|null date()

Get the message date and time.

Return Value

CarbonInterface|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

string|null messageId()

Get the message's 'Message-ID'.

Return Value

string|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

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

array addresses(string $header)

Get addresses from the given header.

Parameters

string $header

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 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

IMessage parse()

Parse the message into a MailMimeMessage instance.

Return Value

IMessage

bool is(MessageInterface $message)

Determine if the message is the same as another message.

Parameters

MessageInterface $message

Return Value

bool

string __toString()

Get the string representation of the message.

Return Value

string