Skip to content

Commit

Permalink
Merge pull request #66 from dotkernel/issue-60
Browse files Browse the repository at this point in the history
fixed smtp transport missing array key port
  • Loading branch information
arhimede authored Nov 15, 2024
2 parents 009e67f + bcd8832 commit 2ac1823
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 2ac1823

Please sign in to comment.