public function index(){
//CI send Emaill
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp.163.com';
$config['smtp_user'] = 'xxxx';
$config['smtp_pass'] = 'xxxx';
$config['smtp_port'] = '25';
$config['smtp_timeout'] = '10'; //timeout 10s
$config['mailtype'] = 'html';
$config['validate'] = true;
$config['priority'] = 1;
$config['crlf'] = "\r\n";
$config['smtp_port'] = 25;
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
$this->email->from('18039863962@163.com');
$this->email->to('377932769@qq.com');
$this->email->subject("邮件测试非垃圾邮件");
$this->email->message('哈哈哈哈哈哈!成功了!');
$this->email->send();
echo $this->email->print_debugger();
}