PHPMailer 中文使用說明
PHPMailer 中文使用說明,有需要的朋友拿去咯。
A開頭: $AltBody --屬性 出自:PHPMailer : $AltBody 檔案:class.phpmailer .php 說明:此屬性的設定是在郵件正文不支援HTML的備用顯示 AddAddress --方法 來自:PHPMailer ::AddAddress(),檔案:class.phpmailer .php 說明:增加收件人。參數1為收件人郵箱,參數2為收件人稱呼。例AddAddress("to@163.com","to name"),但參數2可選,AddAddress(to@163.com )也是可以的。 函數原型: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 --方法 出自:PHPMailer ::ClearBCCs() 檔案 class.phpmailer .php 說明:清楚BCC (密送) ClearCustomHeaders --方法 出自:PHPMailer ::ClearCustomHeaders() 檔案: class.phpmailer .php 說明:清楚自訂頭部 ClearReplyTos --方法 出自:PHPMailer ::ClearReplyTos() 檔案: class.phpmailer .php 說明:清楚回覆人 Close --方法 出自:SMTP::Close() 檔案: class.smtp.php 說明:關閉一個SMTP連線 Connect --方法 出自:SMTP::Connect() 檔案: class.smtp.php 說明:建立一個SMTP連線Mailer.html $ContentType --屬性 出自:PHPMailer : $ContentType 檔案: class.phpmailer .php 說明:文檔的類型,預設為"text/plain" D開頭 $do_debug --屬性 取自:SMTP: $do_debug 檔案:class.smtp.php 說明:SMTP調試輸出 Data -方法 來自:SMTP: $Data() 檔案:class.smtp.php 說明:向伺服器發送一個資料命令和訊息資訊(sendsthemsg_datatotheserver) E開頭 $Encoding --屬性 取自:PHPMailer : $Encoding 檔案:class.phpmailer .php 說明:設定郵件的編碼方式,可選:"8bit","7bit","binary","base64",和"quoted-printable". 1 2 3 下一頁尾頁 |

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

熱門話題

JWT是一種基於JSON的開放標準,用於在各方之間安全地傳輸信息,主要用於身份驗證和信息交換。 1.JWT由Header、Payload和Signature三部分組成。 2.JWT的工作原理包括生成JWT、驗證JWT和解析Payload三個步驟。 3.在PHP中使用JWT進行身份驗證時,可以生成和驗證JWT,並在高級用法中包含用戶角色和權限信息。 4.常見錯誤包括簽名驗證失敗、令牌過期和Payload過大,調試技巧包括使用調試工具和日誌記錄。 5.性能優化和最佳實踐包括使用合適的簽名算法、合理設置有效期、

SOLID原則在PHP開發中的應用包括:1.單一職責原則(SRP):每個類只負責一個功能。 2.開閉原則(OCP):通過擴展而非修改實現變化。 3.里氏替換原則(LSP):子類可替換基類而不影響程序正確性。 4.接口隔離原則(ISP):使用細粒度接口避免依賴不使用的方法。 5.依賴倒置原則(DIP):高低層次模塊都依賴於抽象,通過依賴注入實現。

文章討論了PHP 5.3中介紹的PHP中的晚期靜態結合(LSB),允許靜態方法的運行時間分辨率調用以更靈活的繼承。 LSB的實用應用和潛在的觸摸

使用PHP的cURL庫發送JSON數據在PHP開發中,經常需要與外部API進行交互,其中一種常見的方式是使用cURL庫發送POST�...

如何在系統重啟後自動設置unixsocket的權限每次系統重啟後,我們都需要執行以下命令來修改unixsocket的權限:sudo...
