title: Mandrill SMTP error when I hosted my website
body: <p>I have used Mandrill for SMTP and the below code is well worked for me in localhost. But the same code did not work, when I hosted my website in remote.</p>
  
  <p>It displays an error</p>
  
  <blockquote>
    <p>Smtp->error password not accepted from server 535. Incorrect authenticate data.</p>
  </blockquote>
  
  <p>This is my code. Please do help me.</p>
  
  <pre><code>public function actionCreate()
  {
      $model=new Contacts;
      if(isset($_POST['Contacts']))
      {
          $model-&gt;attributes=$_POST['Contacts'];
                        Yii::import('application.extensions.phpmailer.JPhpMailer');
                      $mail = new JPhpMailer;
                      $mail-&gt;IsSMTP();
                      $mail-&gt;Host = 'smtp.mandrillapp.com';
                      $mail-&gt;Port ='587';
                      $mail-&gt;SMTPAuth = true;
                      $mail-&gt;SMTPSecure="tls";
                      $mail-&gt;Username = 'xxx@gmail.com';
                      $mail-&gt;SMTPDebug = 1;
                      $mail-&gt;SMTPKeepAlive =true;
                      $mail-&gt;Password = 'tshb-mA19EdIvdQf2mO8KA';
                      $mail-&gt;SetFrom($_POST['Contacts']['email'], $_POST['Contacts']['email']);
                      $mail-&gt;Subject = 'New Mail Receiverd';
                      $mail-&gt;AltBody = 'To view the message, please use an HTML compatible email viewer!';
                     $mail-&gt;MsgHTML("DASDSAD");
                         $msgBody="&lt;div&gt;&lt;ul&gt;";
                          foreach($model-&gt;attributes as $key=&gt;$value)
                          {
                               $msgBody.="&lt;li&gt;".$key." - ".$value."&lt;/li&gt;";      
                          }
                          $msgBody.="&lt;/ul&gt;&lt;/div&gt;";
                     $mail-&gt;MsgHTML($msgBody);
                      $mail-&gt;AddAddress('xxx@gmail.com', 'xxx');
                      $ret=$mail-&gt;Send();
  
  
          if($model-&gt;save())
                          print "&lt;script type=\"text/javascript\"&gt;"; 
                          print "alert('Thank you for contacting us.')"; 
                          print "&lt;/script&gt;";  
      }
  
      $this-&gt;render('create',array(
          'model'=&gt;$model,
      ));
  }
  </code></pre>