无法验证密码。错误: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使用codeigniter验证密码失败
function index() {
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'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('[email protected]', 'Gaurav kwatra');
$this->email->to('[email protected]');
$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
我用上面的代码从笨发送邮件....我有一个错误...验证失败。密码正确。
这可能有所帮助:http://stackoverflow.com/a/20645752/1001641 – 2014-10-04 14:11:24