Skip to content

Kirby 5.2.2

$email->beforeSend()

Returns the beforeSend callback closure, which has access to the PHPMailer instance

$email->beforeSend(): Closure|null

Return types

Closureornull

This method modifies the existing $email object it is applied to and returns it again.

Parent class

Kirby\Email\Email