title: SMTP connect() failed PHP mailer
body: <p>I'm trying to send an email from my hotmail account using PHPMailer. It's working fine from my PC but when I try it on another PC I get this error message:</p>
  
  <blockquote>
    <p>2015-04-23 17:31:18 CLIENT -> SERVER: EHLO localhost<br>
    2015-04-23 17:31:18 CLIENT -> SERVER: QUIT<br>
    2015-04-23 17:31:18 SMTP connect() failed. Mailer Error</p>
  </blockquote>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php
  require "C:\wamp\www\PHPMailer-master\PHPMailerAutoload.php";
      $mail = new PHPMailer();
      $mail-&gt;SMTPSecure = 'SSL';
      $mail-&gt;Username = "b1sakher@hotmail.fr";
      $mail-&gt;Password = "rerered";
      $mail-&gt;AddAddress("b1sakher@hotmail.fr");
      $mail-&gt;FromName = "My Name";
      $mail-&gt;Subject = "My Subject";
      $mail-&gt;Body = "My Body";
      $mail-&gt;Host = "smtp.live.com";
      $mail-&gt;Port = 587;
      $mail-&gt;IsSMTP();
      $mail-&gt;SMTPAuth = true;
      $mail-&gt;From = $mail-&gt;Username;
    if(!$mail-&gt;Send())
      {
       echo "Mailer Error";
      }
      else
       {
      echo "Message has been sent";
      }
  ?&gt;
  </code></pre>