User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
sendBrokenLinksEmail() of the link check task only catches MailDisabledException and the PHPMailer exception. MailTemplate::send() is documented to throw \Exception as well, and does so e.g. with an UnexpectedValueException for an invalid sender address. Such an exception aborts the task run with an error instead of being logged, and the remaining Super Users do not get the mail.
\Exception is now caught and logged as well.
invalid) on a test site.The mail error is logged in the task log, the task finishes.
The task run fails with an uncaught exception.
None