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:
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user