PHPMailer 中文使用說明小結
Jun 13, 2016 pm 12:19 PM
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
說明:增加一個密送。抄送和密送的區(qū)別請看[SMTP發(fā)件中的密送和抄送的區(qū)別 ] 。
參數1為地址,參數2為名稱。注意此方法只支持在win32下使用SMTP,不支持mail函數
函數原型:public function AddBCC($address, $name = ''){}
AddCC -- 方法
出自:PHPMailer ::AddCC()
文件:class.phpmailer .php
說明:增加一個抄送。抄送和密送的區(qū)別請看[SMTP發(fā)件中的密送和抄送的區(qū)別 ] 。
參數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
說明:回執(zhí)?
$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
說明:清除收件人,為下一次發(fā)件做準備。返回類型是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
說明:向服務器發(fā)送一個數據命令和消息信息(sendsthemsg_datatotheserver)
E開頭
$Encoding --屬性
出自:PHPMailer : $Encoding
文件:class.phpmailer .php
說明:設置郵件的編碼方式,可選:"8bit","7bit","binary","base64",和"quoted-printable".
$ErrorInfo --屬性
出自:PHPMailer : $ErrorInfo
文件:class.phpmailer .php
說明:返回郵件SMTP中的最后一個錯誤信息
Expand --方法
出自:SMTP::Expand()
文件:class.smtp.php
說 明:返回郵件列表中所有用戶。成功則返回數組,否則返回 false(Expandtakesthenameandaskstheservertolistallthepeoplewhoaremembersofthe_list_.Expandwillreturnbackandarrayoftheresultorfalseifanerroroccurs.)
F開頭:
$From --屬性
出自:PHPMailer ::$From文件class.phpmailer .php
說明:發(fā)件人E-mail地址
$FromName --屬性
出自:PHPMailer ::$FromName
文件:class.phpmailer .php
說明:發(fā)件人稱呼
H開頭:
$Helo --屬性
出自:PHPMailer ::$Helo
文件:class.phpmailer .php
說明:設置SMTPHelo,默認是$Hostname(SetstheSMTPHELOofthemessage(Defaultis$Hostname).)
$Host --屬性
出自:PHPMailer ::$Host
文件:class.phpmailer .php
說明:設置SMTP服務器,格式為:主機名[端口號],如smtp1.example.com:25和smtp2.example.com都是合法的
$Hostname --屬性
出自:PHPMailer ::$Hostname
文件:class.phpmailer .php
說明:設置在Message-Id和andReceivedheaders中的hostname并同時被$Helo使用。如果為空,默認為SERVER_NAME或'localhost.localdomain"
Hello --方法
出自:SMTP::Hello()
文件:class.smtp.php
說明:向SMTP服務器發(fā)送HELO命令
Help --方法
出自:SMTP::Help()
文件:class.smtp.php
說明:如果有關鍵詞,得到關鍵詞的幫助信息
I開頭:
IsError --方法
出自:PHPMailer ::IsError()
文件:class.phpmailer .php
說明:返回是否有錯誤發(fā)生
IsHTML --方法
出自:PHPMailer ::IsHTML()
文件:class.phpmailer .php
說明:設置信件是否是HTML格式
IsMail --方法
出自: PHPMailer ::IsMail()
文件:class.phpmailer .php
說明:設置是否使用php的mail函數發(fā)件
IsQmail --方法
出自: PHPMailer ::IsQmail()
文件:class.phpmailer .php
說明:設置是否使用qmailMTA來發(fā)件
IsSendmail-- 方法
出自:PHPMailer ::IsSendmail()
文件:class.phpmailer .php
說明:是否使用$Sendmail程序來發(fā)件
IsSMTP--方法
出自:PHPMailer ::IsSMTP()
文件:class.phpmailer .php
說明:是否使用SMTP來發(fā)件
M開頭:
$Mailer --屬性
出自:PHPMailer ::$Mailer
文件:class.phpmailer .php
說明:發(fā)件方式,("mail","sendmail",or"smtp").中的一個
Mail --方法
出自:SMTP::Mail()
文件:class.smtp.php
說明:從$from中一個郵件地址開始處理,返回true或false。如果是true,則開始發(fā)件
N開頭:
Noop-- 方法
出自:SMTP::Noop()
文件:class.smtp.php
說明:向SMTP服務器發(fā)送一個NOOP命令
P開頭:
$Password --屬性
出自:PHPMailer ::$Password
文件:class.phpmailer .php
說明:設置SMTP的密碼
$PluginDir --屬性
出自:PHPMailer ::$PluginDir
文件:class.phpmailer .php
說明:設置phpmailer 的插件目錄,僅在smtpclass不在phpmailer 目錄下有效
$Port --屬性
出自:PHPMailer ::$Port
文件:class.phpmailer .php
說明:設置SMTP的端口號
$Priority --屬性
出自:PHPMailer ::$Priority
文件:class.phpmailer .php
說明:設置郵件投遞優(yōu)先等級。1=緊急,3=普通,5=不急
PHPMailer --對象
出自:PHPMailer
文件:class.phpmailer .php
說明:PHPMailer -PHPemailtransportclass
Q開頭
Quit --方法
出自:SMTP::Quit()
文件:class.smtp.php
說明:向服務器發(fā)送Quit命令,如果沒有錯誤發(fā)生。那么關閉sock,不然$close_on_error為true
R開頭
Recipient --方法
出自:SMTP::Recipient()
文件:class.smtp.php
說明:使用To向SMTP發(fā)送RCPT命令,參數為:$to
Reset --方法
出自:SMTP::Reset()
文件:class.smtp.php
說明:發(fā)送RSET命令從而取消處理中傳輸。成功則返回true,否則為false
S開頭:
$Sender --屬性
出自:PHPMailer ::$Sender
文件:class.phpmailer .php
說明:SetstheSenderemail(Return-Path)ofthemessage.Ifnotempty,willbesentvia-ftosendmailoras'MAILFROM'insmtpmode.
$Sendmail --屬性
出自:PHPMailer ::$Sendmail
文件:class.phpmailer .php
說明:設置發(fā)件程序的目錄
$SMTPAuth --屬性
出自:PHPMailer ::$SMTPAuth
文件:class.phpmailer .php
說明:設置SMTP是否需要認證,使用Username和Password變量
$SMTPDebug --屬性
出自:PHPMailer ::$SMTPDebug
文件:class.phpmailer .php
說明:設置SMTP是否調試輸出?
$SMTPKeepAlive --屬性
出自:PHPMailer ::$SMTPKeepAlive
文件:class.phpmailer .php
說明:在每次發(fā)件后不關閉連接。如果為true,則,必須使用SmtpClose()來關閉連接
$SMTP_PORT --屬性
出自:SMTP::$SMTP_PORT
文件:class.smtp.php
說明:設置SMTP端口
$Subject --屬性
出自:PHPMailer ::$Subject
文件:class.phpmailer .php
說明:設置信件的主題
Send --方法
出自:SMTP::Send()
文件:class.smtp.php
說明:從指定的郵件地址開始一個郵件傳輸
Send --方法
出自:PHPMailer ::Send()
文件:class.phpmailer .php
說明:創(chuàng)建郵件并制定發(fā)件程序。如果發(fā)件不成功,則返回false,請使用ErrorInfo來查看錯誤信息
SendAndMail --方法
出自:SMTP::SendAndMail()
文件:class.smtp.php
說明:從指定的郵件地址開始一個郵件傳輸
SendOrMail --方法
出自:SMTP::SendOrMail()
文件:class.smtp.php
說明:從指定的郵件地址開始一個郵件傳輸
SetLanguage --方法
出自:PHPMailer ::SetLanguage()
文件:class.phpmailer .php
說明:設置phpmailer 錯誤信息的語言類型,如果無法加載語言文件,則返回false,默認為english
SMTP --方法
出自:SMTP::SMTP()
文件:class.smtp.php
說明:初始化一個對象以便數據處于一個已知的狀態(tài)
SMTP --對象
出自:SMTP
文件:class.smtp.php
說明:SMTP對象
SmtpClose --方法
出自:PHPMailer ::SmtpClose()
文件:class.phpmailer .php
說明:如果有活動的SMTP則關閉它。
T開頭
$Timeout --屬性
出自:PHPMailer ::$Timeout
文件:class.phpmailer .php
說明:設置SMTP服務器的超時(單位:秒)。注意:在win32下,該屬性無效
Turn --方法
出自:SMTP::Turn()
文件:class.smtp.php
說明:這是一個可選的SMTP參數,目前phpmailer 并不支持他,可能未來支持
U開頭
$Username --屬性
出自:PHPMailer ::$Username
文件:class.phpmailer .php
說明:設置SMTP用戶名
V開頭
$Version --屬性
出自:PHPMailer ::$Version
文件:class.phpmailer .php
說明:返回Phpmailer 的版本
Verify --方法
出自:SMTP::Verify()
文件:class.smtp.php
說明:通過服務器檢查用戶名是否經過驗證
W開頭:
$WordWrap --屬性
出自:PHPMailer ::$WordWrap
文件:class.phpmailer .php
說明:設置每行最大字符數,超過改數后自動換行

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Call of Duty Warzone is a newly launched mobile game. Many players are very curious about how to set the language of this game to Chinese. In fact, it is very simple. Players only need to download the Chinese language pack, and then You can modify it after using it. The detailed content can be learned in this Chinese setting method introduction. Let us take a look together. How to set the Chinese language for the mobile game Call of Duty: Warzone 1. First enter the game and click the settings icon in the upper right corner of the interface. 2. In the menu bar that appears, find the [Download] option and click it. 3. Select [SIMPLIFIEDCHINESE] (Simplified Chinese) on this page to download the Simplified Chinese installation package. 4. Return to the settings

When deleting or decompressing a folder on your computer, sometimes a prompt dialog box "Error 0x80004005: Unspecified Error" will pop up. How should you solve this situation? There are actually many reasons why the error code 0x80004005 is prompted, but most of them are caused by viruses. We can re-register the dll to solve the problem. Below, the editor will explain to you the experience of handling the 0x80004005 error code. Some users are prompted with error code 0X80004005 when using their computers. The 0x80004005 error is mainly caused by the computer not correctly registering certain dynamic link library files, or by a firewall that does not allow HTTPS connections between the computer and the Internet. So how about

Excel spreadsheet is one of the office software that many people are using now. Some users, because their computer is Win11 system, so the English interface is displayed. They want to switch to the Chinese interface, but they don’t know how to operate it. To solve this problem, this issue The editor is here to answer the questions for all users. Let’s take a look at the content shared in today’s software tutorial. Tutorial for switching Excel to Chinese: 1. Enter the software and click the "File" option on the left side of the toolbar at the top of the page. 2. Select "options" from the options given below. 3. After entering the new interface, click the “l(fā)anguage” option on the left

VSCode Setup in Chinese: A Complete Guide In software development, Visual Studio Code (VSCode for short) is a commonly used integrated development environment. For developers who use Chinese, setting VSCode to the Chinese interface can improve work efficiency. This article will provide you with a complete guide, detailing how to set VSCode to a Chinese interface and providing specific code examples. Step 1: Download and install the language pack. After opening VSCode, click on the left

The default language of the balatro game is English, but players can set the language to Chinese in Steam. Some players still don’t know how to set it. Here is how to set balatro to Chinese. How to set up balatro in Chinese 1. First open Steam, click on the library, find balatro, right-click and select properties. 2. You can see the language in the properties interface, click to enter the language setting interface. 3. Players can set the language of the game to Simplified Chinese or other languages. 4. Afterwards, players need to restart Steam, and then enter the game to see that it is already in Chinese. The above is how to set Chinese in balatro. It is relatively simple. Players can try it.

Quark browser software provides countless resource information, and the search results are the most accurate. It has a powerful built-in search engine. You can find the corresponding answers by entering keywords. The overall Internet experience is very good. Browsing sections in different fields are open. Search for whatever you search and see. You can find it immediately. All annoying advertising pop-ups are blocked. All annoying advertising pop-ups are blocked. You can freely switch between different browsing modes and surf the Internet. There is no lag at all in the process, and of course the translation function can be turned on. Languages ??of any country can be easily translated, and there are no problems in communication. Files and documents compatible with various formats can be opened and viewed. Now the editor is browsing for Quark online in detail. Server users bring the method of setting Chinese translation. 1. First click on the mobile phone desktop

"WWE2K24" is a racing sports game created by Visual Concepts and was officially released on March 9, 2024. This game has been highly praised, and many players are eagerly interested in whether it will have a Chinese version. Unfortunately, so far, "WWE2K24" has not yet launched a Chinese language version. Will wwe2k24 be in Chinese? Answer: Chinese is not currently supported. The standard version of WWE2K24 in the Steam Chinese region is priced at 199 yuan, the deluxe version is 329 yuan, and the commemorative edition is 395 yuan. The game has relatively high configuration requirements, and there are certain standards in terms of processor, graphics card, or running memory. Official recommended configuration and minimum configuration introduction:

Tips for solving Chinese garbled characters written by PHP into txt files. With the rapid development of the Internet, PHP, as a widely used programming language, is used by more and more developers. In PHP development, it is often necessary to read and write text files, including txt files that write Chinese content. However, due to encoding format problems, sometimes the written Chinese will appear garbled. This article will introduce some techniques to solve the problem of Chinese garbled characters written into txt files by PHP, and provide specific code examples. Problem analysis in PHP, text
