FileMessage
class FileMessage implements MessageInterface (View source)
Traits
Properties
| protected IMessage|null | $parsed | The parsed message. |
from HasParsedMessage |
Methods
Get the message flags.
Add or remove a flag from the message.
Determine if the attachment should be treated as an embedded forwarded message.
Get a header from the message.
Determine if the message is empty.
Get the string representation of the message.
Constructor.
Get the message's identifier.
Get the message's size in bytes (RFC822.SIZE).
Details
void
markRead()
{@inheritDoc}
void
markUnread()
{@inheritDoc}
void
markSeen()
{@inheritDoc}
void
unmarkSeen()
{@inheritDoc}
void
markAnswered()
{@inheritDoc}
void
unmarkAnswered()
{@inheritDoc}
void
markFlagged()
{@inheritDoc}
void
unmarkFlagged()
{@inheritDoc}
void
markDeleted(bool $expunge = false)
{@inheritDoc}
void
unmarkDeleted()
{@inheritDoc}
void
markDraft()
{@inheritDoc}
void
unmarkDraft()
{@inheritDoc}
void
markRecent()
{@inheritDoc}
void
unmarkRecent()
{@inheritDoc}
bool
isSeen()
{@inheritDoc}
bool
isAnswered()
{@inheritDoc}
bool
isFlagged()
{@inheritDoc}
bool
isDeleted()
{@inheritDoc}
bool
isDraft()
{@inheritDoc}
bool
isRecent()
{@inheritDoc}
bool
hasFlag(BackedEnum|string $flag)
{@inheritDoc}
array
flags()
Get the message flags.
void
flag(BackedEnum|string $flag, string $operation, bool $expunge = false)
Add or remove a flag 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.
array
attachments()
Get the message's attachments.
bool
hasAttachments()
Determine if the message has attachments.
int
attachmentCount()
Get the count of attachments.
protected bool
isForwardedMessage(IMessagePart $part)
Determine if the attachment should be treated as an embedded forwarded message.
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.
protected bool
isEmpty()
Determine if the message is empty.
string
__toString()
Get the string representation of the message.
__construct(string $contents)
Constructor.
int
uid()
Get the message's identifier.
int|null
size()
Get the message's size in bytes (RFC822.SIZE).
bool
is(MessageInterface $message)
Determine if this message is equal to another.