Skip to content

Commit

Permalink
fixed smtp missing array key port
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiuBota1 committed Nov 15, 2024
1 parent d61750c commit bcd8832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory/MailServiceAbstractFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bcd8832

Please sign in to comment.