Skip to content

Commit 1c3773a

Browse files
authored
Fix auth = none
1 parent bcec7a5 commit 1c3773a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Email/Model/Transport.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,16 @@ private function createSmtpTransport(): Smtp
235235
'name' => 'localhost',
236236
'host' => $host,
237237
'port' => $port,
238-
'connection_class' => $auth,
239238
'connection_config' => [
240239
'username' => $username,
241240
'password' => $password,
242241
]
243242
];
244243

244+
if ($auth && $auth !== 'none') {
245+
$options['connection_class'] = $auth;
246+
}
247+
245248
if ($ssl && $ssl !== 'none') {
246249
$options['connection_config']['ssl'] = $ssl;
247250
}

0 commit comments

Comments
 (0)