From 253cec241f6dd8a25068318d2b8d40916f082931 Mon Sep 17 00:00:00 2001 From: Thorsten Rinne Date: Sat, 11 Jan 2025 10:54:32 +0100 Subject: [PATCH] fix: corrected class not found error on case sensitive filesystems, closes #3324 --- phpmyfaq/src/phpMyFAQ/Mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpmyfaq/src/phpMyFAQ/Mail.php b/phpmyfaq/src/phpMyFAQ/Mail.php index 7ef7054975..e85bb23c75 100644 --- a/phpmyfaq/src/phpMyFAQ/Mail.php +++ b/phpmyfaq/src/phpMyFAQ/Mail.php @@ -183,7 +183,7 @@ class Mail public function __construct(Configuration $configuration) { // Set default value for public properties - $this->agent = $configuration->get('mail.remoteSMTP') ? 'SMTP' : 'built-in'; + $this->agent = $configuration->get('mail.remoteSMTP') ? 'smtp' : 'built-in'; $this->boundary = self::createBoundary(); $this->messageId = '<' . Request::createFromGlobals()->server->get('REQUEST_TIME') . '.' . md5(microtime()) . '@' . self::getServerName() . '>'; @@ -430,7 +430,7 @@ public function send(): int } return match ($this->agent) { - 'SMTP', 'built-in' => $mua->send($recipients, $this->headers, $this->body), + 'smtp', 'built-in' => $mua->send($recipients, $this->headers, $this->body), default => throw new Exception('Mail Class: ' . $this->agent . ' has no implementation!'), }; }