Skip to content

Core\Mail\Message

A message that your program received, such as a reply or a bounce. Core\Mail\Message::parse reads it from its raw bytes. Every text it returns is tainted, because the sender wrote it.

Returned by

You get a Core\Mail\Message from these methods:

Members

20 members.

MemberSignature
parseparse(string|bytes $raw): Core\Mail\Message
messageIdmessageId(): ?string
fromfrom(): ?Core\Mail\Address
toto(): array<Core\Mail\Address>
cccc(): array<Core\Mail\Address>
replyToreplyTo(): array<Core\Mail\Address>
subjectsubject(): string
datedate(): ?Core\Time\DateTime
headerheader(string $name): array<string>
inReplyToinReplyTo(): ?string
referencesreferences(): array<string>
texttext(): ?string
htmlhtml(): ?string
attachmentsattachments(): array<Core\Mail\Attachment>
rawraw(): bytes
kindkind(): Core\Mail\Message::Kind
answersanswers(): ?string
reportreport(): ?Core\Mail\Report
bounceTagbounceTag(): ?string
uiduid(): ?int

Enums

  • KindWhat a received message is, as Core\Mail\Message::kind() returns it.