Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Remove timeout and fix port mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Apr 2, 2019
1 parent bed182f commit 0c36d0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Randomizer/SmtpRandomizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function randomize(RandomSmtpTransport $randomSmtpTransport, \Swift_Mime_
}

$randomSmtpTransport->setHost($host);
$randomSmtpTransport->setPort(ArrayHelper::getValue('post', $smtp, 25));
$randomSmtpTransport->setPort(ArrayHelper::getValue('port', $smtp, 25));
$randomSmtpTransport->setEncryption(ArrayHelper::getValue($this->getConfigParamter('encryption'), $smtp, ''));
$randomSmtpTransport->setAuthMode(ArrayHelper::getValue($this->getConfigParamter('auth_mode'), $smtp, ''));
$randomSmtpTransport->setUsername(ArrayHelper::getValue($this->getConfigParamter('username'), $smtp, ''));
Expand Down
1 change: 0 additions & 1 deletion Swiftmailer/Transport/RandomSmtpTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function __construct(SmtpRandomizer $smtpRandomizer, Logger $logger, $sec
$this->smtpRandomizer = $smtpRandomizer;
$this->logger = $logger;
parent::__construct('localhost');
$this->setTimeout(30);
$this->setRandomSmtpServer();

}
Expand Down

0 comments on commit 0c36d0e

Please sign in to comment.