1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

fix: issue with smtp non-tls connections (#4203)

This commit is contained in:
Daniël Klabbers
2025-02-27 18:34:31 +01:00
committed by GitHub
parent 1a206ff658
commit 65d8c16580

View File

@@ -53,7 +53,7 @@ class SmtpDriver implements DriverInterface
public function buildTransport(SettingsRepositoryInterface $settings): TransportInterface
{
return $this->factory->create(new Dsn(
$settings->get('mail_encryption') === 'tls' ? 'smtps' : '',
$settings->get('mail_encryption') === 'tls' ? 'smtps' : 'smtp',
$settings->get('mail_host'),
$settings->get('mail_username'),
$settings->get('mail_password'),