API / Minn\Mail / Message

Message final readonly class

Minn\Mail\Message · public/minn/src/Minn/Mail/Message.php · 18 lines

One outgoing plain-text email.

Constants and properties

propreadonly array $to

Promoted from the constructor.

propreadonly string $subject

Promoted from the constructor.

propreadonly string $body

Promoted from the constructor.

propreadonly string $fromEmail

Promoted from the constructor.

propreadonly string $fromName

Promoted from the constructor.

Public

new__construct(array $to, string $subject, string $body, string $fromEmail = '', string $fromName = '')#
$tolist<string>
staticto(array|string $to, string $subject, string $body): self#

One recipient or several, and the two things every mail has.