Skip to content

Commit 1852f48

Browse files
committed
Tweak options
1 parent 023bd90 commit 1852f48

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ private function createSmtpTransport(): Smtp
221221
ScopeInterface::SCOPE_STORE
222222
);
223223

224+
224225
$options = [
225226
'name' => 'localhost',
226227
'host' => $host,
@@ -236,7 +237,10 @@ private function createSmtpTransport(): Smtp
236237
$options['connection_config']['ssl'] = $ssl;
237238
}
238239

239-
return new Smtp(new SmtpOptions($options));
240+
$transport = new Smtp();
241+
$transport->setOptions(new SmtpOptions($options));
242+
243+
return $transport;
240244
}
241245

242246
/**

app/code/Magento/Email/etc/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<port>25</port>
3030
<set_return_path>0</set_return_path>
3131
<transport>sendmail</transport>
32+
<auth>none</auth>
3233
</smtp>
3334
</system>
3435
<trans_email>

0 commit comments

Comments
 (0)