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);