Codeigniter Ionauth在忘记密码时生成错误的电子邮件

时间:2015-06-13 12:08:48

标签: php codeigniter ion-auth

当我点击忘记密码时,电子邮件中的链接是:

http://10.50.2.124/ticket/auth/res=t_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013

http://10.50.2.124/ticket/auth/reset_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013

ion_auth.php中的设置为:

$config['use_ci_email'] = TRUE; 
$config['email_config'] = array(
                        'mailtype' => 'html',
                         );

1 个答案:

答案 0 :(得分:0)

您应该尝试设置crlf来解决问题:

$this->email->set_crlf("\r\n");

$config['crlf'] = "\r\n";