We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0feef93 commit 9541779Copy full SHA for 9541779
src/Illuminate/Mail/MailManager.php
@@ -171,7 +171,7 @@ protected function createSmtpTransport(array $config)
171
$factory = new EsmtpTransportFactory;
172
173
$transport = $factory->create(new Dsn(
174
- ! empty($config['encryption']) && $config['encryption'] === 'tls' ? 'smtps' : '',
+ ! empty($config['encryption']) && $config['encryption'] === 'tls' ? (($config['port'] == 465) ? 'smtps' : 'smtp') : '',
175
$config['host'],
176
$config['username'] ?? null,
177
$config['password'] ?? null,
0 commit comments