Skip to content
Corex

MailPath

Corex\Mail\Capture\MailPath · class · Core layer

The name of what is sending the email in progress, for the Email Studio log: “Form notification”, “Newsletter: new post”, “WordPress: password reset” (spec 113, research R4). CoreX code that sends wraps the send in {@see during()}; mail sent inside a name is CoreX’s own, which the “Capture only CoreX mail” switch reads. WordPress builds its own emails through filters that run just before wp_mail(), so a name can also be left for the next email ({@see next()}), which reads it once.

during(string $name, callable $send): mixed

Section titled “during(string $name, callable $send): mixed”

The innermost name in force, or null when no CoreX code is sending.

Name the next email, which is not CoreX’s own (WordPress core mail).

The name left for this email, once: a second email is not named by it.