Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-13 09:10:49
Original
1323 people have browsed it

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

本文实例讲述了codeigniter发送邮件并打印调试信息的方法。分享给大家供大家参考。具体如下:

这里的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();
Copy after login

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!