title: enable to send mail via PhpMailer?
body: <p>I have configure and install composer in my project,i also require the <code>autoload.php</code> file into my file to send mail.my all login details are also correct but while running the application i m getting <code>SMTP ERROR: Password command failed</code>i have included detailed error below.please help me to sort out this problem</p>
  
  <pre><code>            &lt;?php
              require_once 'vendor/vendor/autoload.php';
              $m = new PHPMailer;
  
              $m-&gt;isSMTP();
              $m-&gt;SMTPAuth = true;
              $m-&gt;SMTPDebug = 2;
              $m-&gt;Host= 'smtp.gmail.com';
              $m-&gt;Username = 'suhasgawde10@gmail.com';
              $m-&gt;Password = '*************';
  
              $m-&gt;SMTPSecure = 'ssl';
              $m-&gt;Port = 465;
  
              $m-&gt;From = 'suhasgawde10@gmail.com';
              $m-&gt;FromName = 'Suhas Gawde';
              $m-&gt;addReplyTo('suhasgawde10@gmail.com','Reply address');
              $m-&gt;addAddress('suhasgawde10@gmail.com','Suhas Gawde');
  
              $m-&gt;Subject = "Here is the subject";
              $m-&gt;Body = 'this is mailed send throught php mailer';
              $m-&gt;AltBody= 'this is mailed send throught php mailer';
  
              if(!$m-&gt;send()){
                  echo "Mailer Error: " . $m-&gt;ErrorInfo;
              }
              else{
                  echo 'success';
              }
              ?&gt;
  </code></pre>
  
  <p>Error while running this file : </p>
  
  <pre><code>          2015-06-25 10:48:42   SERVER -&gt; CLIENT: 220 mx.google.com ESMTP
            si7sm29610201pbc.54 - gsmtp 2015-06-25 10:48:42   CLIENT -&gt; 
            SERVER: EHLO localhost 2015-06-25 10:48:43    SERVER -&gt; CLIENT: 
            250-mx.google.com at your service, [59.182.41.18] 250-SIZE 
            35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-            
            CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-
            CHUNKING 250 SMTPUTF8 2015-06-25 10:48:43 CLIENT -&gt; SERVER: AUTH
            LOGIN 2015-06-25 10:48:43 SERVER -&gt; CLIENT: 334 VXNlcm5hbWU6 2015-
            06-25 10:48:43    CLIENT -&gt; SERVER:     
            c3VoYXNnYXdkZTEwQGdtYWlsLmNvbQ== 2015-06-25 
            10:48:44  SERVER -&gt; CLIENT: 334 UGFzc3dvcmQ6 2015-06-25 10:48:44  
           CLIENT -&gt; SERVER: Z2FuYXBhdGlAMTAwOA== 2015-06-25 10:48:44 SERVER -
            &gt; CLIENT: 534-5.7.14 Please log in via your web browser and 534-
            5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 
            https://support.google.com/mail/answer/78754 si7sm29610201pbc.54 - 
            gsmtp 2015-06-25 10:48:44 SMTP ERROR: Password command failed: 
            534-5.7.14 Please log in via your web browser and 534-5.7.14 then 
            try again. 534-5.7.14 Learn more at 534 5.7.14
            https://support.google.com/mail/answer/78754 si7sm29610201pbc.54 - 
            gsmtp 2015-06-25 10:48:44 SMTP Error: Could not authenticate. 
            2015-06-25 10:48:44   CLIENT -&gt; SERVER: QUIT 2015-06-25 10:48:45  
            SERVER -&gt; CLIENT: 221 2.0.0 closing connection si7sm29610201pbc.54 
            - gsmtp 2015-06-25 10:48:45   SMTP connect() failed. 
            https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Mailer 
            Error: SMTP connect() failed. 
            https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
  </code></pre>