$config['protocol']='smtp';
$config['smtp_host']='smtp.163.com';//163服务器,之前用了qq服务器死活发不出去,不知道什么原因,可以自己探索
$config['smtp_user']='18730261183@163.com';//你的邮箱账号
$config['smtp_pass']='mima';//你的邮箱密码
$config['smtp_port'] = 25;//端口
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['priority'] = 1;
$config['validate'] = TRUE;
$this->load->library('email');
$this->email->initialize($config);
//$this->email->from($_POST['sendfrom'],'我是发件人') //发件人 $this->email->to($_POST['sendto']);//收件人 $this->email->subject($_POST['topic']);//主题 $this->email->message($_POST['content']);//正文
$this->email->from('18730261183@163.com', '');
$this->email->to('wen1750686723@qq.com');
// $this->email->cc('another@another-example.com');
// $this->email->bcc('them@their-example.com');

$this->email->subject('ceshi');
$this->email->message('Testing the email class.');
$this->email->send();

最新文章

  1. OpenLayers的定制
  2. 墙国内新建Rails应用的要点(windows 7环境, Rails 4.2.0)
  3. OpenGL extension specification (from openGL.org)
  4. spingmvc 返回json数据日期格式化方法
  5. JS实用代码收集
  6. Solr 多核(MultiCore)配置
  7. 第19讲- UI组件之_Button、checkbox、radio
  8. 开源Math.NET基础数学类库使用(08)C#进行数值积分
  9. Parcel:常见技术栈的集成方式
  10. iOS开发 runtime实现原理以及实际开发中的应用
  11. 关于ES6
  12. 【倍增】Tak and Hotels II @ABC044&ARC060/upcexam6463
  13. Python数据分析学习目录
  14. M1 卡技术规范
  15. gaea-basic-components 知识点
  16. 原生js(三)
  17. winform中控件的简单数据绑定
  18. spring boot快速入门 1 :创建项目、 三种启动项目方式
  19. Maven系列(二)之安装和配置详解
  20. mysql循环查询

热门文章

  1. Vue.js 模板语法
  2. 使用Postman Interceptor发送带cookie的请求一直loading的解决法案
  3. java 十四周总结
  4. Python学习——字典
  5. node.js与HTML5离线缓存
  6. MySQL导入-导出数据库-mac版
  7. poj 1379 模拟退火法
  8. 洛谷——P2935 [USACO09JAN]最好的地方Best Spot
  9. [bzoj1293][SCOI2009]生日礼物(单调队列)
  10. Maven项目pom.xml报错