Skip to content

Commit

Permalink
fix: allow SMTP TLS to be set for all ports
Browse files Browse the repository at this point in the history
This reverts PR laravel#40943
This resolves laravel#45899
  • Loading branch information
leinelissen committed Feb 1, 2023
1 parent c39ec48 commit 96d0890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/MailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function createSmtpTransport(array $config)
$factory = new EsmtpTransportFactory;

$transport = $factory->create(new Dsn(
! empty($config['encryption']) && $config['encryption'] === 'tls' ? (($config['port'] == 465) ? 'smtps' : 'smtp') : '',
! empty($config['encryption']) && $config['encryption'] === 'tls' ? 'smtps' : '',
$config['host'],
$config['username'] ?? null,
$config['password'] ?? null,
Expand Down

0 comments on commit 96d0890

Please sign in to comment.