Skip to content
Corex

RecipientAwareSubmissionEmailGateway

Corex\Mail\RecipientAwareSubmissionEmailGateway · interface · Core layer

What a submission email gateway can add for resends (spec 112, User Story 7). Optional: a gateway that implements only {@see SubmissionEmailGateway}, as a client site’s may, keeps working; CoreX then resends once per recipient and does not resend an email whose recipients it cannot confirm.

resendTo(string $attemptId, array $recipients, array $context): MailResult

Section titled “resendTo(string $attemptId, array $recipients, array $context): MailResult”

Sends the attempt’s email again, once, to all of these addresses.

wasSentTo(string $attemptId, string $address): bool

Section titled “wasSentTo(string $attemptId, string $address): bool”

Whether the attempt was sent to this address.