title: Failed to authenticate password using codeigniter
body: <p>Failed to authenticate password. Error: 534-5.7.14 Please log in via your web browser and then try again. 534-5.7.14 Learn more at 534 5.7.14 <a href="https://support.google.com/mail/bin/answer.py?answer=78754" rel="noreferrer">https://support.google.com/mail/bin/answer.py?answer=78754</a> wv1sm5867206pab.37 - gsmtp </p>
  
  <pre><code>function index() {
  
       $config = Array(
         'protocol' =&gt; 'smtp',
         'smtp_host' =&gt; 'ssl://smtp.googlemail.com',
         'smtp_port' =&gt; 465,
         'smtp_user' =&gt; 'gauravkwt@gmail.com',
         'smtp_pass' =&gt; '92135108845129',
         'mailtype' =&gt; 'html',
         'charset' =&gt; 'iso-8859-1',
         'wordwrap' =&gt; TRUE  
  
       );
  
       $this-&gt;load-&gt;library('email', $config);
       $this-&gt;email-&gt;set_newline("\r\n");
       $this-&gt;email-&gt;from('gauravkwt@gmail.com', 'Gaurav kwatra');
       $this-&gt;email-&gt;to('gaurav.kawatra@ymail.com');
       $this-&gt;email-&gt;subject('This is an email test');
       $this-&gt;email-&gt;message('Emial Testing');
  
        //$this-&gt;email-&gt;initialize($config);
  
       if($this-&gt;email-&gt;send())
       {
           echo 'Your email sent...!!!! ';
       }
       else 
       {
           show_error($this-&gt;email-&gt;print_debugger());
       }
   }
  //end of code
  </code></pre>
  
  <p>I use above code to send mail from codeigniter....I have an error...Failed to authenticate.   Password is correct. </p>