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!'), }; }