Skip to content
Corex

FlowEmailSender

Corex\Forms\Submission\FlowEmailSender · class · Forms layer

Optional Email Studio adapter for versioned flow notification bindings.

__construct(?RoutedMailer $mailer, FlowEmailAddressResolver $addresses)

Section titled “__construct(?RoutedMailer $mailer, FlowEmailAddressResolver $addresses)”

Whether CoreX Mail’s routed transport is available. When false, the flow has no Email Studio to route through and the pipeline falls back to the wp_mail() floor instead (FR-017).

send(array $binding, string $flowSlug, array $context): ?MailResult

Section titled “send(array $binding, string $flowSlug, array $context): ?MailResult”

recipientsFor(array $binding, array $context): array

Section titled “recipientsFor(array $binding, array $context): array”

Who a binding’s email is addressed to: its template’s recipients, resolved from the flow’s mapping and the submission (spec 112, FR-032). Empty for an email routed by its trigger, whose recipients the route decides.