Skip to content

Commit

Permalink
fix: corrected class not found error on case sensitive filesystems, c…
Browse files Browse the repository at this point in the history
…loses #3324
  • Loading branch information
thorsten committed Jan 11, 2025
1 parent 19a774d commit 253cec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/src/phpMyFAQ/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() . '>';
Expand Down Expand Up @@ -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('<strong>Mail Class</strong>: ' . $this->agent . ' has no implementation!'),
};
}
Expand Down

0 comments on commit 253cec2

Please sign in to comment.