title: PHPMailer(): Called Mail() without being connected
body: <pre><code>&lt;?php
  //error_reporting(E_ALL);
  error_reporting(E_STRICT);
  require_once('/PHPMailer/class.phpmailer.php');
  
  $mail=new PHPMailer();
  $body='blah body';
  $mail-&gt;IsSMTP(); // telling the class to use SMTP
  $mail-&gt;Host="127.17.7.4"; // SMTP server
  $mail-&gt;Port=25;
  $mail-&gt;SMTPDebug=1;                     // enables SMTP debug information (for testing)
                                                 // 1 = errors and messages
                                                 // 2 = messages only
  
  $mail-&gt;SetFrom('name@zenphoto.com', 'First Last');
  $mail-&gt;AddReplyTo("name@zenphoto.com","First Last");
  $address = "myemail@email.com";  //This will be my email address, that I want to receive the mail on
  $mail-&gt;AddAddress($address);
  $mail-&gt;Subject    = "PHPMailer Test Subject via mail(), basic";
  $mail-&gt;MsgHTML($body);
  if(!$mail-&gt;Send()) {
      echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  } else {
  echo "Message sent!";
  }
  ?&gt;
  </code></pre>
  
  <p>I am trying to send mail with PHPMailer, but I keep getting the error:
  The exact error message:</p>
  
  <p>SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)</p>
  
  <p>The following From address failed: name@zenphoto.com : Called Mail() without being connected Mailer Error: The following From address failed: name@zenphoto.com : Called Mail() without being connected</p>