Skip to content

Commit 192ac56

Browse files
committed
use getsystemvalue-functions in Mailer.php
Signed-off-by: Simon L <szaimen@e.mail.de>
1 parent 05f360c commit 192ac56

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/private/Mail/Mailer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ protected function getInstance(): MailerInterface {
290290
*/
291291
protected function getSmtpInstance(): EsmtpTransport {
292292
// either null or true - if nothing is passed, let the symfony mailer figure out the configuration by itself
293-
$mailSmtpsecure = ($this->config->getSystemValue('mail_smtpsecure', null) === 'ssl') ? true : null;
293+
$mailSmtpsecure = ($this->config->getSystemValueString('mail_smtpsecure', null) === 'ssl') ? true : null;
294294
$transport = new EsmtpTransport(
295-
$this->config->getSystemValue('mail_smtphost', '127.0.0.1'),
295+
$this->config->getSystemValueString('mail_smtphost', '127.0.0.1'),
296296
$this->config->getSystemValueInt('mail_smtpport', 25),
297297
$mailSmtpsecure,
298298
null,
@@ -301,11 +301,11 @@ protected function getSmtpInstance(): EsmtpTransport {
301301
/** @var SocketStream $stream */
302302
$stream = $transport->getStream();
303303
/** @psalm-suppress InternalMethod */
304-
$stream->setTimeout($this->config->getSystemValue('mail_smtptimeout', 10));
304+
$stream->setTimeout($this->config->getSystemValueInt('mail_smtptimeout', 10));
305305

306306
if ($this->config->getSystemValueBool('mail_smtpauth', false)) {
307-
$transport->setUsername($this->config->getSystemValue('mail_smtpname', ''));
308-
$transport->setPassword($this->config->getSystemValue('mail_smtppassword', ''));
307+
$transport->setUsername($this->config->getSystemValueString('mail_smtpname', ''));
308+
$transport->setPassword($this->config->getSystemValueString('mail_smtppassword', ''));
309309
}
310310

311311
$streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', []);

0 commit comments

Comments
 (0)