title: Mandrill PHPMailer giving Error: SMTP Connect() failed
body: <p>When I am trying to send a mail using mandrill by this PHPMailer method it is showing an error as SMTP Connect() Failed. This is my code:</p>
  
  <pre><code>&lt;?php         
      require 'class.phpmailer.php';     
      $mail = new PHPMailer;  
      $mail-&gt;IsSMTP();           
      $mail-&gt;Host = 'smtp.mandrillapp.com';    
      $mail-&gt;SMTPSecure = 'tls';                    
      $mail-&gt;Port = 587;                                      
      $mail-&gt;SMTPAuth = true;                                 
      $mail-&gt;Username = 'MANDRILL_USERNAME';                  
      $mail-&gt;Password = 'API_KEY';                     
      $mail-&gt;From = 'abc@xyz.com';   
      $mail-&gt;FromName = 'Your From name';   
      $mail-&gt;AddAddress('def@tuv.com');                
      $mail-&gt;IsHTML(true);                             
      $mail-&gt;Subject = 'Here is the subject';          
      $mail-&gt;Body    = 'This is the HTML message body &lt;strong&gt;in bold!&lt;/strong&gt;';    
      $mail-&gt;AltBody = 'This is the body in plain text for non-HTML mail clients';    
      if(!$mail-&gt;Send()) {           
          echo 'Message could not be sent.';        
          echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;      
         exit;   
      }      
      echo 'Message has been sent';   
  ?&gt;
  </code></pre>
  
  <p>I am not able to find the problem. I have also included the phpmailer files from which the class.phpmailer.php file is arrived at. Please help...</p>