Skip to content

Commit

Permalink
Fix the way that SMTP host lists are parsed, see PHPMailer#112
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Sep 25, 2013
1 parent 70ba3fb commit 873955a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ public function smtpConnect($options = array())
//If it's not specified, the default value is used
$prefix = '';
$tls = ($this->SMTPSecure == 'tls');
if ($hostinfo[2] == 'ssl') {
if ($hostinfo[2] == 'ssl' or ($hostinfo[2] == '' and $this->SMTPSecure == 'ssl')) {
$prefix = 'ssl://';
$tls = false; //Can't have SSL and TLS at once
} elseif ($hostinfo[2] == 'tls') {
Expand Down

0 comments on commit 873955a

Please sign in to comment.