本文實例講述了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();
希望本文所述對大家基於codeigniter的php程序設計有所幫助。