MailHold
Corex\Mail\Capture\MailHold · class · Core layer
While a flow’s marked test runs, every email it sends is held: kept in Email Studio and never sent, on any site (spec 113, US3; the owner’s decision SAFE-D3). What was held is listed for the test’s result.
Public API
Section titled “Public API”during(callable $work): array
Section titled “during(callable $work): array”Run $work with every email held, and return its result with what was held.
active(): bool
Section titled “active(): bool”note(array $to, string $subject, string $captureId, string $path): void
Section titled “note(array $to, string $subject, string $captureId, string $path): void”Note an email held while a hold is active; outside one, nothing is noted.