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 bcec7a5 commit 1c3773aCopy full SHA for 1c3773a
app/code/Magento/Email/Model/Transport.php
@@ -235,13 +235,16 @@ private function createSmtpTransport(): Smtp
235
'name' => 'localhost',
236
'host' => $host,
237
'port' => $port,
238
- 'connection_class' => $auth,
239
'connection_config' => [
240
'username' => $username,
241
'password' => $password,
242
]
243
];
244
+ if ($auth && $auth !== 'none') {
245
+ $options['connection_class'] = $auth;
246
+ }
247
+
248
if ($ssl && $ssl !== 'none') {
249
$options['connection_config']['ssl'] = $ssl;
250
}
0 commit comments