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