HasParsedMessage
trait HasParsedMessage (View source)
Properties
| protected IMessage|null | $parsed | The parsed message. |
Methods
Get the message date and time.
Get the message's message-id.
Get the message's subject.
Get the IN-REPLY-TO message identifier(s).
Get the TO addresses.
Get the CC addresses.
Get the BCC addresses.
Get the message's attachments.
Determine if the message has attachments.
Get the count of attachments.
Determine if the attachment should be treated as an embedded forwarded message.
Get addresses from the given header.
Get the message's HTML content.
Get the message's text content.
Get all headers from the message.
Get a header from the message.
Parse the message into a MailMimeMessage instance.
Determine if the message is empty.
Get the string representation of the message.
Details
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.
abstract protected bool
isEmpty()
Determine if the message is empty.
abstract string
__toString()
Get the string representation of the message.