爱吾下载文章资讯

分类分类

codeigniter发送邮件并打印调试信息的方法

2015-05-07 13:52作者:zhao

这里的codeigniter代码实现发送邮件并打印调试信息的功能,用codeigniter自带的邮件发送库发送邮件

$this->load->library('email' );

$this->email- >from(' you@example. com' , ' Your Name' );

$this->email- >to('someone@example. com' );

$this->email- >cc('another@person. com' );

$this->email- >bcc('theboss@example. com' );

$this->email- >subject(' Email Test' );

$this->email- >message('This is a simple test we wrote for the email');

$this->email- >send();

echo $this->email- >print_debugger();

希望本文所述对大家基于codeigniter的php程序设计有所帮助。

展开全部

相关

说两句网友评论
    我要跟贴
    取消