This commit is contained in:
Josh Schmidt 2013-09-22 10:10:32 -07:00
commit e4cd9a73cf
1 changed files with 3 additions and 3 deletions

View File

@ -1247,13 +1247,13 @@ class PHPMailer
$hosts = explode(';', $this->Host);
$lastexception = null;
foreach ($hosts as $hostentry) {
foreach ($hosts as $host) {
$hostinfo = array();
$host = $hostentry;
$host = trim($host);
$port = $this->Port;
if (preg_match(
'/^(.+):([0-9]+)$/',
$hostentry,
$host,
$hostinfo
)
) { //If $hostentry contains 'address:port', override default