diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index 2e2b23c94d9d..cb799305eeec 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -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,