Skip to content

Commit

Permalink
Fix lazy creation of external SMTP
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Jul 2, 2012
1 parent 2f2c7f2 commit fb90fce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/Zend/Mail/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 fb90fce

Please sign in to comment.