title: SparkPost email not working
body: <p>I have used sparkpost email for my website <a href="http://hlwmm.org" rel="nofollow noreferrer">http://hlwmm.org</a>. I have used php Phpmailer library with Sparkpost SMTP. It was working fine but its not working now. Below is my code </p>
  
  <pre><code>// Import PHPMailer classes into the global namespace
  // These must be at the top of your script, not inside a function
  use PHPMailer\PHPMailer\PHPMailer;
  use PHPMailer\PHPMailer\Exception;
  
  //Load Composer's autoloader
  require 'vendor/autoload.php';
  
  $mail = new PHPMailer;
  $mail-&gt;SMTPDebug = 2;
  $mail-&gt;isSMTP();
  $mail-&gt;Host = 'smtp.sparkpostmail.com';
  $mail-&gt;Port = 587;
  $mail-&gt;SMTPSecure = 'tls';
  $mail-&gt;SMTPAuth = true;
  $mail-&gt;Username = 'SMTP_Injection';
  $mail-&gt;Password = 'XXXXXXXXXXXXXXXXXXXXXXXX';
  
  $mail-&gt;setFrom('inquiry@hlwmm.org');
  
  $mail-&gt;addAddress($to);
  $mail-&gt;Subject = "Test Subject";
  $mail-&gt;Body = "Test Sparkpost Email";
  
  $mail-&gt;send();
  </code></pre>
  
  <p>I am getting below error </p>
  
  <pre><code>2018-08-03 05:55:31 SERVER -&gt; CLIENT: 220 2.0.0 smtp.sparkpostmail.com ESMTP ecelerity 4.2.39.65390 r(Core:4.2.39.50) Fri, 03 Aug 2018 05:55:31 +0000
  2018-08-03 05:55:31 CLIENT -&gt; SERVER: EHLO hlwmm.org
  2018-08-03 05:55:31 SERVER -&gt; CLIENT: 250-b.mta1vsmtp.cc.aws-usw2b.prd.sparkpost says EHLO to 162.214.3.26:35530250-ENHANCEDSTATUSCODES250-8BITMIME250-PIPELINING250-AUTH=LOGIN PLAIN250-AUTH LOGIN PLAIN250 STARTTLS
  2018-08-03 05:55:31 CLIENT -&gt; SERVER: STARTTLS
  2018-08-03 05:55:31 SERVER -&gt; CLIENT: 220 2.0.0 continue
  SMTP Error: Could not connect to SMTP host.
  2018-08-03 05:55:31 SMTP NOTICE: EOF caught while checking if connected
  SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
  Error
  </code></pre>
  
  <p>Thanks </p>