Skip to content

Commit 65d8c16

Browse files
authored
fix: issue with smtp non-tls connections (flarum#4203)
1 parent 1a206ff commit 65d8c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/core/src/Mail/SmtpDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function canSend(): bool
5353
public function buildTransport(SettingsRepositoryInterface $settings): TransportInterface
5454
{
5555
return $this->factory->create(new Dsn(
56-
$settings->get('mail_encryption') === 'tls' ? 'smtps' : '',
56+
$settings->get('mail_encryption') === 'tls' ? 'smtps' : 'smtp',
5757
$settings->get('mail_host'),
5858
$settings->get('mail_username'),
5959
$settings->get('mail_password'),

0 commit comments

Comments
 (0)