Skip to content
Corex

MailRequest

Corex\Mail\MailRequest · class · Core layer

A primitive, transport-neutral mail request. It carries only scalars and arrays so corex-core (and any consumer, e.g. the Forms add-on) can describe an email without depending on the Corex Mail engine’s concrete types. The bound Mailer implementation turns it into a real, validated message.

__construct(array $to, ?string $templateName, array $context, ?string $subject, ?string $body, ?string $replyTo, ?string $requestId, ?string $parentAttemptId, ?string $from, array $attachments)

Section titled “__construct(array $to, ?string $templateName, array $context, ?string $subject, ?string $body, ?string $replyTo, ?string $requestId, ?string $parentAttemptId, ?string $from, array $attachments)”