Just gave this a go, but it ends up causing an infinite loop since it triggers itself when calling the parentJust call the parent first.
PHP:public function setContent($subject, $htmlBody, $textBody = null): Mail { $mail = parent::setContent($subject, $htmlBody, $textBody); // ... whatever you need to do return $mail; }
We use essential cookies to make this site work, and optional cookies to enhance your experience.