title: phpmailer hangs on send()
body: <p>Trying to send a simple contact form on my website, however, the page is just hanging when it gets to $mail->send();</p>
  
  <p>this is my code...</p>
  
  <pre><code>    require('class.phpmailer.php');
      require('class.smtp.php');
  
      $mail = new PHPMailer;
  
      $mail-&gt;isSMTP();
      $mail-&gt;Host = 'gator4099.hostgator.com';
      $mail-&gt;SMTPAuth = true;
      $mail-&gt;Username = 'MY USER NAME';
      $mail-&gt;Password = 'MY PASSWORD';
      $mail-&gt;Port = 465;
  
      $mail-&gt;setFrom('info@emailaddress.com', 'Mailer');
      $mail-&gt;isHTML(true);
  
      $name = $_POST['name'];
      $email = $_POST['email'];
      $number = $_POST['number'];
      $message = $_POST['message'];
  
      $mail-&gt;SMTPAuth   = true;
      $mail-&gt;AddAddress('myname@domain.com', "MY NAME");
      $mail-&gt;Subject = 'Website Contact Form';
      $mail-&gt;Body    = 'name = '.$name.'&lt;br/&gt; email = '.$email.' &lt;br/&gt;  number = '.$number.' &lt;br/&gt; message = '.$message.'&lt;br/&gt;&lt;br/&gt;&lt;br/&gt; :) ';
  
  
      if(!$mail-&gt;send()) {
          echo 'Message could not be sent.';
          $mailSent = 0;
      } else {
          echo 'message sent';
          $mailSent = 1;
      }
  </code></pre>
  
  <p>in the above, I had removed my username, password and email addresses for obvious reasons. But they are 100% correct in my code.</p>
  
  <p>If I echo anything out before $mail->send() it displays, however, anything after will not display and the browser just has the loading symbol constantly spinning.</p>
  
  <p>Any ideas?</p>