无法使用codeigniter验证密码 [英] Failed to authenticate password using codeigniter

查看:42
本文介绍了无法使用codeigniter验证密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法验证密码.错误:534-5.7.14请通过网络浏览器登录,然后重试.534-5.7.14进一步了解534 5.7.14 https://support.google.com/mail/bin/answer.py?answer = 78754 wv1sm5867206pab.37-gsmtp

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 https://support.google.com/mail/bin/answer.py?answer=78754 wv1sm5867206pab.37 - gsmtp

function index() {

     $config = Array(
       'protocol' => 'smtp',
       'smtp_host' => 'ssl://smtp.googlemail.com',
       'smtp_port' => 465,
       'smtp_user' => 'gauravkwt@gmail.com',
       'smtp_pass' => '92135108845129',
       'mailtype' => 'html',
       'charset' => 'iso-8859-1',
       'wordwrap' => TRUE  

     );

     $this->load->library('email', $config);
     $this->email->set_newline("\r\n");
     $this->email->from('gauravkwt@gmail.com', 'Gaurav kwatra');
     $this->email->to('gaurav.kawatra@ymail.com');
     $this->email->subject('This is an email test');
     $this->email->message('Emial Testing');

      //$this->email->initialize($config);

     if($this->email->send())
     {
         echo 'Your email sent...!!!! ';
     }
     else 
     {
         show_error($this->email->print_debugger());
     }
 }
//end of code

我使用上面的代码从codeigniter发送邮件....我有一个错误...无法通过身份验证.密码正确.

I use above code to send mail from codeigniter....I have an error...Failed to authenticate. Password is correct.

推荐答案

您需要转到帐户设置

You would need to go to your account settings https://www.google.com/settings/security and you would need to enable Access for less secure apps which helps to use the google smtp for clients.

请查看这里也是

这篇关于无法使用codeigniter验证密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆