trait HasParsedMessage (View source)

Properties

protected IMessage|null $parsed

The parsed message.

Methods

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.

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.

bool
isEmpty()

Determine if the message is empty.

string
__toString()

Get the string representation of the message.

Details

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

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

protected bool isForwardedMessage(IMessagePart $part)

Determine if the attachment should be treated as an embedded forwarded message.

Parameters

IMessagePart $part

Return Value

bool

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

abstract protected bool isEmpty()

Determine if the message is empty.

Return Value

bool

abstract string __toString()

Get the string representation of the message.

Return Value

string