From bcd8832824c251770086216633c6cf8f42034b70 Mon Sep 17 00:00:00 2001 From: sergiu Date: Fri, 15 Nov 2024 15:35:03 +0200 Subject: [PATCH] fixed smtp missing array key port --- src/Factory/MailServiceAbstractFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory/MailServiceAbstractFactory.php b/src/Factory/MailServiceAbstractFactory.php index 7f85c76..efa2123 100644 --- a/src/Factory/MailServiceAbstractFactory.php +++ b/src/Factory/MailServiceAbstractFactory.php @@ -180,7 +180,7 @@ protected function setupTransportConfig(TransportInterface $transport): Transpor if ($transport instanceof SmtpTransport) { $user = $this->mailOptions->getSmtpOptions()->getConnectionConfig()['username']; $pass = $this->mailOptions->getSmtpOptions()->getConnectionConfig()['password']; - $port = $this->mailOptions->getSmtpOptions()->getConnectionConfig()['port']; + $port = $this->mailOptions->getSmtpOptions()->getPort(); $host = $this->mailOptions->getSmtpOptions()->getHost(); $transport = Transport::fromDsn('smtp://' . $user . ':' . $pass . '@' . $host . ':' . $port);