add configurable SMTP mail delivery

Add a core SMTP mailer with configurable transport, authentication, and sender settings. Route form confirmation and admin notifications through the core mailer, and add tests for SMTP delivery, failure cases, and finisher integration.
This commit is contained in:
2026-11-24 11:48:31 +01:00
parent c507618b90
commit dfe1e40e58
6 changed files with 592 additions and 11 deletions
@@ -38,6 +38,7 @@ class SendConfirmationEmailToSubmitter extends DefaultFinisher
protected function sendMail(string $recipient, string $subject, string $message): bool
{
return mail($recipient, $subject, $message);
$mailer = phpb_instance('mail');
return $mailer !== null && $mailer->send($recipient, $subject, $message) === true;
}
}