PHPMailer Update Issue (from 5.2.9 to 5.2.16)
<p>PHPMailer works great, I've been using it for ages and it's pretty good. I have had version 5.2.9 on my server and have got the newer, 5.2.16 uploaded, </p>

<p>Now my sites have issues of: </p>

<blockquote>
  <p>"SMTP Error: SMTP connect() failed." </p>
</blockquote>

<p>I have added <code>$mail-&gt;SMTPDebug = 4;</code> and it gives me this:</p>

<pre><code>2016-11-15 17:18:10 Connection: opening to localhost:25, timeout=300, options=array (
                                      )
2016-11-15 17:18:10 Connection: opened
...
removed excess repetative lines
...

2016-11-15 17:18:10 SERVER -&gt; CLIENT: 250-mail.blythnetwork.co.uk Hello www.domain.co.uk [::1]
                                      250-SIZE 52428800
                                      250-8BITMIME
                                      250-PIPELINING
                                      250-AUTH PLAIN LOGIN
                                      250-STARTTLS
                                      250 HELP
2016-11-15 17:18:10 CLIENT -&gt; SERVER: STARTTLS
2016-11-15 17:18:10 SMTP -&gt; get_lines(): $data is ""
2016-11-15 17:18:10 SMTP -&gt; get_lines(): $str is  "220 TLS go ahead
                                      "
2016-11-15 17:18:10 SERVER -&gt; CLIENT: 220 TLS go ahead
2016-11-15 17:18:10 SMTP Error: Could not connect to SMTP host.
2016-11-15 17:18:10 CLIENT -&gt; SERVER: QUIT
2016-11-15 17:18:10 SMTP -&gt; get_lines(): $data is ""
</code></pre>

<p>Nothing else has changed on the server. Reverting to PHPMailer Version 5.2.9 removes this error (and emails are sent ok).</p>

<p>I have also tried to update from 5.2.9 to 5.2.14 and 5.2.13 and the same error occurs. I have made no changes to the DNS and there are no DKIM or other identifiers set in the PHPmailer classes to allow version 5.2.9 but not 5.2.13 or 5.2.16 ones. </p>

<p>I'm using PHP Version 5.6.2.</p>

<p>Any clues as to why this is so? </p>

<p>The sending code: 
(I realise the code is not the best but it's an older site I picked at random to test out PHPMailer 5.2.16) </p>

<pre><code>$mail           = new PHPMailer();
//$mail-&gt;SMTPDebug=4;
$mail-&gt;Host     = "localhost";
$mail-&gt;WordWrap = 78;
$mail-&gt;isSMTP();
$mail-&gt;From     = $fromMail;
$mail-&gt;FromName = "Website: ".$name;
$mail-&gt;AddAddress($toEmail);
$mail-&gt;Subject = $member['bizname'] . " Enquiry";
$mail-&gt;Body    = $message;
if (!$mail-&gt;Send()) {  
  ...
 }
</code></pre>