Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/external-smtp-creation' of https://github.com/Sl…
Browse files Browse the repository at this point in the history
…amdunk/zf2 into hotfix/mail-transport-options
  • Loading branch information
weierophinney committed Jul 2, 2012
2 parents 5e018e7 + ffb6a9b commit 806e429
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Transport/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ protected function prepareBody(Message $message)
protected function lazyLoadConnection()
{
// Check if authentication is required and determine required class
$options = $this->getOptions();
$host = $options->getHost();
$port = $options->getPort();
$config = $options->getConnectionConfig();
$connection = $this->plugin($options->getConnectionClass(), array($host, $port, $config));
$options = $this->getOptions();
$config = $options->getConnectionConfig();
$config['host'] = $options->getHost();
$config['port'] = $options->getPort();
$connection = $this->plugin($options->getConnectionClass(), $config);
$this->connection = $connection;
$this->connection->connect();
$this->connection->helo($options->getName());
Expand Down

0 comments on commit 806e429

Please sign in to comment.