mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
fix: issue with smtp non-tls connections (#4203)
This commit is contained in:
@@ -53,7 +53,7 @@ class SmtpDriver implements DriverInterface
|
|||||||
public function buildTransport(SettingsRepositoryInterface $settings): TransportInterface
|
public function buildTransport(SettingsRepositoryInterface $settings): TransportInterface
|
||||||
{
|
{
|
||||||
return $this->factory->create(new Dsn(
|
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_host'),
|
||||||
$settings->get('mail_username'),
|
$settings->get('mail_username'),
|
||||||
$settings->get('mail_password'),
|
$settings->get('mail_password'),
|
||||||
|
Reference in New Issue
Block a user