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.
| Member | Signature |
|---|---|
parse | parse(string|bytes $raw): Core\Mail\Message |
messageId | messageId(): ?string |
from | from(): ?Core\Mail\Address |
to | to(): array<Core\Mail\Address> |
cc | cc(): array<Core\Mail\Address> |
replyTo | replyTo(): array<Core\Mail\Address> |
subject | subject(): string |
date | date(): ?Core\Time\DateTime |
header | header(string $name): array<string> |
inReplyTo | inReplyTo(): ?string |
references | references(): array<string> |
text | text(): ?string |
html | html(): ?string |
attachments | attachments(): array<Core\Mail\Attachment> |
raw | raw(): bytes |
kind | kind(): Core\Mail\Message::Kind |
answers | answers(): ?string |
report | report(): ?Core\Mail\Report |
bounceTag | bounceTag(): ?string |
uid | uid(): ?int |
Enums
KindWhat a received message is, asCore\Mail\Message::kind()returns it.
