PHP codeigniter发送邮件并打印调试信息,用codeigniter自带的邮件发送库发送邮件
/**
* PHP codeigniter发送邮件并打印调试信息
*
* @param
* @arrange 512-笔记网: www.www.jb51.cc
**/
$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 class. ' ) ;
$this->email- >send() ;
echo $this->email- >print_debugger() ;
/*** 来自编程之家 jb51.cc(jb51.cc) ***/