codeigniter發(fā)送郵件并打印調(diào)試信息的方法
本文實例講述了codeigniter發(fā)送郵件并打印調(diào)試信息的方法。分享給大家供大家參考。具體如下:
這里的codeigniter代碼實現(xiàn)發(fā)送郵件并打印調(diào)試信息的功能,用codeigniter自帶的郵件發(fā)送庫發(fā)送郵件
$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程序設(shè)計有所幫助。
相關(guān)文章
php使用strtotime和date函數(shù)判斷日期是否有效代碼分享
php使用strtotime和date函數(shù)進(jìn)行檢驗判斷日期是否有效代碼分享,大家參考使用吧2013-12-12
PHP實例分享判斷客戶端是否使用代理服務(wù)器及其匿名級別
最近做的一個項目,要用到判斷客戶端是否使用代理,以及其匿名級別,翻查了一些文件,下面記錄下來,分享給大家2014-06-06
PHP xpath提取網(wǎng)頁數(shù)據(jù)內(nèi)容代碼解析
這篇文章主要介紹了PHP xpath提取網(wǎng)頁數(shù)據(jù)內(nèi)容代碼解析,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-07-07
Thinkphp使用mongodb數(shù)據(jù)庫實現(xiàn)多條件查詢方法
這篇文章主要介紹了Thinkphp使用mongodb數(shù)據(jù)庫實現(xiàn)多條件查詢方法,修改了mongodb驅(qū)動文件來實現(xiàn)復(fù)合查詢、多條件查詢,需要的朋友可以參考下2014-06-06
jquery+thinkphp實現(xiàn)跨域抓取數(shù)據(jù)的方法
這篇文章主要介紹了jquery+thinkphp實現(xiàn)跨域抓取數(shù)據(jù)的方法,結(jié)合實例形式分析了thinkPHP結(jié)合jQuery的ajax實現(xiàn)跨域抓取數(shù)據(jù)的相關(guān)操作技巧,需要的朋友可以參考下2016-10-10

