Home > php教程 > php手册 > CI框架发送邮件

CI框架发送邮件

WBOY
Release: 2016-06-21 08:55:42
Original
999 people have browsed it

CI框架有发送邮件类:具体的可以看手册,关于邮件的配置文件,我放在单独的文件里,方便以后维护

  文件名为:email.php,这个文件保存到application/config/email.php,然后在控制器里加载$this->load->library("email"),这样就不需要使用$this->email->initialize()函数来初始化参数了

  Php代码

$config["protocol"] = "smtp";  
$config["smtp_host"] = "smtp.163.com";  
$config["smtp_user"] = "email地址";  
$config["smtp_pass"] = "*******";  
$config["mailtype"] = "html";  
$config["validate"] = true;  
$config["priority"] = 1;  
$config["crlf"]  = "\r\n";  
$config["smtp_port"] = 25;  
$config["charset"] = "gb2312";  
$config["wordwrap"] = TRUE;

$config["protocol"] = "smtp";
$config["smtp_host"] = "smtp.163.com";
$config["smtp_user"] = "email地址";
$config["smtp_pass"] = "*******";
$config["mailtype"] = "html";
$config["validate"] = true;
$config["priority"] = 1;
$config["crlf"]  = "\r\n";
$config["smtp_port"] = 25;
$config["charset"] = "gb2312";
$config["wordwrap"] = TRUE;

视图关键代码:

Html代码

 
 
CI框架发送邮件 - 站长学院

  • 首页
  • 互联网软件
  • IDC产品
  • 站长交易
  • 项目外包
  • 商业信息
  • 招聘求职
  • 公司库
  • 资 讯
  • 下 载
  • 学 院
  • 工 具
  • 论 坛

视频教程 常用手册 常用广告代码 js特效代码

站长学院 >> 网站开发技术教程 >> php教程  >> CI框架发送邮件

CI框架发送邮件

2011-2-10 18:18:00查看学习心得

{GetProperty(Content)}



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template