前言:
phpmailer是一個優秀的發件程式,但中文資料比較少,於是我手動翻譯了phpmailer的elementindex.html,E文的:PHPMailer.html">http://www.bblog.com/apidoc/elementindex_PHPMailer.html,因為水平有限,翻譯的地方可能不是很准,希望大家多多指教。因為東西較多,所以分三個文章
A-C
From:
http://www.xiaoxiaoyu.cn/AMP/215.html
A開頭:
$AltBody--屬性
出自:PHPMailer::$AltBody ,檔案:class.phpmailer.php
說明:該屬性的設定是在郵件內文不支援HTML的備用顯示
AddAddress--方法
出自:PHPMailer::AddAddress(),檔案:class.phpmailer.php
說明:增加收件者。參數1為收件者郵箱,參數2為收件者稱呼。例AddAddress("xiaoxiaoxiaoyu@xiaoxiaoyu.cn","xiaoxiaoyu"),但參數2可選,AddAddress(xiaoxiaoxiaoyu@xiaoxiaoyu.cn)也是可以的。函數原型:
public function AddAddress($address, $name = ) {}
AddAttachment--方法
出自:PHPMailer::AddAttachment(),檔案:class.phpmailer.php
說明:增加附件。參數:路徑,名稱,編碼,類型。其中,路徑為必選,其他為可選
函數原型:
AddAttachment($path, $name = , $encoding = base64, $type = application/octet-stream){}
AddBCC--方法
出自:PHPMailer::AddBCC(),檔案:class.phpmailer.php
說明:增加一個密送。抄送和密送的區別請看[SMTP發件中的密送和抄送的區別] 。參數1為地址,參數2為名稱。注意此方法只支援在win32下使用SMTP,不支援mail函數
函數原型:
public function AddBCC($address, $name = ){}
AddCC --方法
出自:PHPMailer::AddCC(),檔案:class.phpmailer.php
說明:增加一個抄送。抄送和密送的區別請看[SMTP發件中的密送和抄送的區別] 。參數1為地址,參數2為名稱注意此方法只支援在win32下使用SMTP,不支援mail函數 函數原型:
public function AddCC($address, $name = ) {}
AddCustomHeader --方法
出自:PHPMailer::AddCustomHeader(),檔案:class.phpmailer.php
說明:增加一個自訂的E-mail頭部。參數為頭部資訊
函數原型:
public function AddCustomHeader($custom_header){}
AddEmbeddedImage --方法
出自:PHPMailer::AddEmbeddedImage(),檔案:class.phpmailer.php
說明:增加一個嵌入式圖片。參數:路徑,返回控制代碼[,名稱,編碼,類型]
函數原型:
public function AddEmbeddedImage($path, $cid, $name = , $encoding = base64, $type = application/octet-stream) {}
提示: AddEmbeddedImage(PICTURE_PATH. "index_01.jpg ", "img_01 ", "index_01.jpg ");
在html中引用
AddReplyTo--方法
出自:PHPMailer:: AddReplyTo(),檔案:class.phpmailer.php
說明:增加回複標籤,如"Reply-to"。參數1地址,參數2名稱
函數原型:
public function AddReplyTo($address, $name = ) {}
AddStringAttachment-方法
出自:PHPMailer:: AddStringAttachment(),檔案:class.phpmailer.php
說明;增加一個字串或二進位附件(Adds a string or binary attachment (non-filesystem) to the list.?)參數:字串,檔案名稱[,編碼,類型]
函數原型:
public function AddStringAttachment($string, $filename, $encoding = base64, $type = application/octet-stream) {}
Authenticate--方法
出自:SMTP::Authenticate(),檔案:class.smtp.php
說明:開始SMTP認證,必須在Hello()之後調用,如果認證成功,返回true,參數1使用者名稱,參數2密碼
函數原型:
public function Authenticate($username, $password) {}
B開頭
$Body--屬性
出自:PHPMailer::$Body 檔案: class.phpmailer.php
說明:郵件內容,HTML或Text格式
C開頭
$CharSet--屬性
出自:PHPMailer::$CharSet 檔案:class.phpmailer.php
說明:郵件編碼,預設為iso-8859-1
$ConfirmReadingTo--屬性
出自:PHPMailer::$ConfirmReadingTo 檔案class.phpmailer.php
說明:回執?
$ContentType--屬性
出自:PHPMailer::$ContentType 檔案: class.phpmailer.php
說明:文檔的類型,預設為"text/plain"
$CRLF--屬性
出自:PHPMailer::$ContentType 檔案:class.phpmailer.php
說明:SMTP回複結束的分隔字元(SMTP reply line ending?)
class.phpmailer.php--對象
出自:class.phpmailer.php 檔案: class.phpmailer.php
說明:phpmailer對象
class.smtp.php--對象
出自:class.smtp.php 檔案: class.smtp.php
說明:SMTP功能的對象
ClearAddresses--方法
出自:PHPMailer::ClearAddresses() 檔案: class.phpmailer.php
說明:清除收件者,為下一次發件做準備。傳回型別是void
ClearAllRecipients--方法
出自:PHPMailer::ClearAllRecipients() 檔案: class.phpmailer.php
說明:清除所有收件者,包括CC(抄送)和BCC(密送)
ClearAttachments--方法
出自:PHPMailer::ClearAttachments() 檔案: class.phpmailer.php
說明:清楚附件
ClearBCCs--方法
&
http://www.bkjia.com/PHPjc/508359.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/508359.htmlTechArticle前言: phpmailer是一個優秀的發件程式,但中文資料比較少,於是我手動翻譯了phpmailer的elementindex.html,E文的:PHPMailer.html">http://www.bblog.com/...