phpmailer Chinese Instructions (Simplified Version)_PHP Tutorial
phpmailer v5.1 download
Starts with A:
$AltBody--property
From: PHPMailer::$AltBody
File: class.phpmailer.php
Instructions: The setting of this attribute is an alternative display when the email body does not support HTML
AddAddress--Method
From: PHPMailer::AddAddress(), file: class.phpmailer.php
Description: Add an address person. Parameter 1 is the recipient's email address, and parameter 2 is the recipient's title. For example, AddAddress("xiaoxiaoxiaoyu@xiaoxiaoyu.cn","xiaoxiaoyu"), but parameter 2 is optional, and AddAddress(xiaoxiaoxiaoyu@xiaoxiaoyu.cn) is also possible.
Function prototype: public function AddAddress($address, $name = '') {}
AddAttachment--method
From: PHPMailer::AddAttachment()
File: class.phpmailer .php.
Instructions: Add attachments.
Parameters: path, name, encoding, type. Among them, the path is required, and the others are optional
Function prototype:
AddAttachment($path, $name = '', $encoding = 'base64', $type = 'application/octet-stream'){ }
AddBCC--Method
From: PHPMailer::AddBCC()
File: class.phpmailer.php
Description: Add a blind copy. For the difference between CC and BCC, please see [Difference between BCC and CC in SMTP sending].
Parameter 1 is the address, parameter 2 is the name. Note that this method only supports SMTP under win32, and does not support the mail function
Function prototype: public function AddBCC($address, $name = ''){}
AddCC --Method
from :PHPMailer::AddCC()
File: class.phpmailer.php
Description: Add a CC. For the difference between CC and BCC, please see [Difference between BCC and CC in SMTP sending].
Parameter 1 is the address, parameter 2 is the name. Note that this method only supports SMTP under win32 and does not support the mail function
Function prototype: public function AddCC($address, $name = '') {}
AddCustomHeader--Method
From: PHPMailer::AddCustomHeader()
File: class.phpmailer.php
Description: Add a custom E-mail header.
The parameter is the header information
Function prototype: public function AddCustomHeader($custom_header){}
AddEmbeddedImage --method
From: PHPMailer::AddEmbeddedImage()
File: class .phpmailer.php
Description: Add an embedded image
Parameters: path, return handle [, name, encoding, type]
Function prototype: public function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {}
Tips: AddEmbeddedImage(PICTURE_PATH. "index_01.jpg ", "img_01 ", "index_01.jpg ");
Quoted in html
AddReplyTo-- method
From: PHPMailer:: AddReplyTo()
File: class.phpmailer.php
Description: Add reply tags, such as "Reply- to"
Parameter 1 address, parameter 2 name
Function prototype: public function AddReplyTo($address, $name = '') {}
AddStringAttachment-method
From: PHPMailer:: AddStringAttachment()
File: class.phpmailer.php
Description: Adds a string or binary attachment (non-filesystem) to the list.?)
Parameter: String ,File name [, encoding, type]
Function prototype: public function AddStringAttachment($string, $filename, $encoding = 'base64', $type = 'application/octet-stream') {}
Authenticate--Method
From: SMTP::Authenticate()
File: class.smtp.php
Description: Start SMTP authentication, which must be called after Hello(). If the authentication is successful, return true.
Parameter 1 username, parameter 2 password
Function prototype: public function Authenticate($username, $password) {}
B starts with B
$Body--property
From: PHPMailer::$Body
File: class.phpmailer.php
Description: Email content, HTML or Text format
Starting with C
$CharSet--Attribute
From: PHPMailer::$CharSet
File: class.phpmailer.php
Description: Mail encoding, the default is iso-8859-1
$ConfirmReadingTo--property
From: PHPMailer::$ConfirmReadingTo File class.phpmailer.php
Description: Receipt?
$ContentType--property
From: PHPMailer::$ContentType
File: class.phpmailer.php
Description: The type of document, the default is "text/plain"
$CRLF--Attributes
From: PHPMailer::$ContentType
File: class.phpmailer.php
Description: SMTP reply end delimiter (SMTP reply line ending?)
class.phpmailer.php--Object
From: class.phpmailer.php
File: class.phpmailer.php
Description: phpmailer Object
class.smtp.php-- Object
comes from: class.smtp.php File: class.smtp.php
Description: SMTP function object
ClearAddresses--method
comes from: PHPMailer::ClearAddresses()
File: class.phpmailer.php
Description: Clear the recipients and prepare for the next sending.The return type is void
ClearAllRecipients--method
from: PHPMailer::ClearAllRecipients()
File: class.phpmailer.php
Description: Clear all recipients, including CC (copied Send) and BCC (Bcc)
ClearAttachments--method
From: PHPMailer::ClearAttachments()
File: class.phpmailer.php
Description: Clear attachments
ClearBCCs--method
from: PHPMailer::ClearBCCs() file class.phpmailer.php
Description: Clear BCC (Bcc)
ClearCustomHeaders--method
from: PHPMailer ::ClearCustomHeaders()
File: class.phpmailer.php
Description: Clear custom headers
ClearReplyTos--method
From: PHPMailer::ClearReplyTos()
File : class.phpmailer.php
Description: Clear reply person
Close--Method
From: SMTP::Close()
File: class.smtp.php
Description: Close an SMTP connection
Connect--method
From: SMTP::Connect()
File: class.smtp.php
Description: Establish an SMTP connection [/color]Mailer. html
$ContentType--attribute
from: PHPMailer::$ContentType
File: class.phpmailer.php
Description: The type of document, the default is "text/plain"
Starts with D
$do_debug--attribute
From: SMTP::$do_debug
File: class.smtp.php
Description: SMTP debugging output
Data- Method
from: SMTP::Data()
File: class.smtp.php
Description: Send a data command and message information to the server (sendsthemsg_datatotheserver)
Starts with E
$Encoding--attribute
From: PHPMailer::$Encoding
File: class.phpmailer.php
Description: Set the encoding method of the email, optional: "8bit", "7bit", "binary", "base64", and "quoted-printable".
$ErrorInfo--property
From: PHPMailer::$ErrorInfo
File: class.phpmailer.php
Description : Return the last error message in the mail SMTP
Expand--Method
From: SMTP::Expand()
File: class.smtp.php
Description: Return to the mailing list All users. If successful, return the array, otherwise return false(Expandtakesthenameandaskstheservertolistallthepeoplewhoaremembersofthe_list_.Expandwillreturnbackandarrayoftheresultorfalseifanerroroccurs.)
F starts with:
$From--attribute
From: PHPMailer::$From file class.phpmailer.php
Description: Sender's E-mail address
$FromName--attribute
From: PHPMailer::$FromName
File: class.phpmailer.php
Description: Sender's title
Starts with H:
$Helo--Attributes
From: PHPMailer::$Helo
File: class.phpmailer.php
Description: Set SMTPHelo, the default is $ Hostname(SetstheSMTPHELOofthemessage(Defaultis$Hostname).)
$Host--property
From: PHPMailer::$Host
File: class.phpmailer.php
Description: Set SMTP server, The format is: host name [port number], such as smtp1.example.com:25 and smtp2.example.com are both legal
$Hostname--attribute
From: PHPMailer::$Hostname
File: class.phpmailer.php
Description: The hostname set in Message-Id and andReceivedheaders is also used by $Helo. If empty, defaults to SERVER_NAME or 'localhost.localdomain"
Hello--Method
From: SMTP::Hello()
File: class.smtp.php
Description: To SMTP server sends HELO command
Help--Method
From: SMTP::Help()
File: class.smtp.php
Description: If there is a keyword, get the keyword Help information
I starts with:
IsError--Method
From: PHPMailer::IsError()
File: class.phpmailer.php
Description: Returns whether there is An error occurred
IsHTML--method
from: PHPMailer::IsHTML()
File: class.phpmailer.php
Description: Set whether the letter is in HTML format
IsMail--Method
From:PHPMailer::IsMail()
File: class.phpmailer.php
Description: Set whether to use php's mail function to send mail
IsQmail--Method
From: PHPMailer::IsQmail()
File: class.phpmailer.php
Description: Set whether to use qmailMTA to send emails
IsSendmail--Method
From: PHPMailer:: IsSendmail()
File: class.phpmailer.php
Description: Whether to use the $Sendmail program to send mails
IsSMTP--Method
From: PHPMailer::IsSMTP()
File: class.phpmailer.php
Description: Whether to use SMTP to send emails
Starting with M:
$Mailer--Attributes
From: PHPMailer::$Mailer
File: class.phpmailer.php
Description: One of the sending methods, ("mail", "sendmail", or "smtp").
Mail--method
from: SMTP::Mail()
File: class.smtp.php
Description: Start processing from an email address in $from, return true or false.If it is true, start sending
N beginning:
Noop--method
from: SMTP::Noop()
File: class.smtp.php
Description: Send a NOOP command to the SMTP server
P beginning:
$Password--attribute
From: PHPMailer::$Password
File: class.phpmailer.php
Description: Set SMTP password
$PluginDir--property
From: PHPMailer::$PluginDir
File: class.phpmailer.php
Description: Set the plug-in directory of phpmailer, only in smtpclass is not valid in the phpmailer directory
$Port--property
From: PHPMailer::$Port
File: class.phpmailer.php
Description: Set the SMTP port number
$Priority--Attribute
From: PHPMailer::$Priority
File: class.phpmailer.php
Description: Set the email delivery priority. 1=Urgent, 3=Normal, 5=Not urgent
PHPMailer--Object
From: PHPMailer
File: class.phpmailer.php
Description: PHPMailer-PHPemailtransportclass
Starting with Q
Quit--method
From: SMTP::Quit()
File: class.smtp.php
Description: Send the Quit command to the server, if no error occurs . Then close the sock, otherwise $close_on_error is true
Starting with R
Recipient--method
From: SMTP::Recipient()
File: class.smtp.php
Instructions: Use To to send RCPT command to SMTP, the parameters are: $to
Reset--method
from: SMTP::Reset()
File: class.smtp.php
Description: Send the RSET command to cancel the transfer in progress. Returns true if successful, otherwise false
S starts with:
$Sender--property
from: PHPMailer::$Sender
File: class.phpmailer.php
Description: SetstheSenderemail(Return-Path)ofthemessage.Ifnotempty,willbesentvia-ftosendmailoras'MAILFROM'insmtpmode.
$Sendmail--property
From: PHPMailer::$Sendmail
File: class.phpmailer .php
Description: Set the directory of the sending program
$SMTPAuth--property
From: PHPMailer::$SMTPAuth
File: class.phpmailer.php
Description: Set Whether SMTP requires authentication, use the Username and Password variables
$SMTPDebug--property
From: PHPMailer::$SMTPDebug
File: class.phpmailer.php
Description: Set whether SMTP is debugged Output?
$SMTPKeepAlive--property
From: PHPMailer::$SMTPKeepAlive
File: class.phpmailer.php
Description: Do not close the connection after each sending. If true, the connection must be closed using SmtpClose()
$SMTP_PORT--Attributes
From: SMTP::$SMTP_PORT
File: class.smtp.php
Description: Set SMTP port
$Subject--Attributes
From: PHPMailer::$Subject
File: class.phpmailer.php
Description: Set the subject of the letter
Send --Method
From: SMTP::Send()
File: class.smtp.php
Description: Start an email transmission from the specified email address
Send--Method
From: PHPMailer::Send()
File: class.phpmailer.php
Description: Create an email and develop a sending program. If the sending is unsuccessful, false will be returned. Please use ErrorInfo to view the error message
SendAndMail--Method
From: SMTP::SendAndMail()
File: class.smtp.php
Description: Start an email transmission from the specified email address
SendOrMail--Method
From: SMTP::SendOrMail()
File: class.smtp.php
Description: From the specified Start an email transfer with the email address
SetLanguage--Method
From: PHPMailer::SetLanguage()
File: class.phpmailer.php
Description: Set the language type of phpmailer error message , if the language file cannot be loaded, false is returned. The default is english
SMTP--Method
from: SMTP::SMTP()
File: class.smtp.php
Description: Initialize an object so that the data is in a known state
SMTP--Object
From: SMTP
File: class.smtp.php
Description: SMTP object
SmtpClose--Method
From: PHPMailer::SmtpClose()
File: class.phpmailer.php
Description: Close SMTP if there is one active.
Starts with T
$Timeout--property
From: PHPMailer::$Timeout
File: class.phpmailer.php
Description: Set the timeout of the SMTP server ( Unit: seconds). Note: Under win32, this attribute is invalid
Turn--Method
From: SMTP::Turn()
File: class.smtp.php
Description: This is optional SMTP parameters, currently phpmailer does not support it. It may support
U starting with
$Username--attribute
in the future: PHPMailer::$Username
File: class. phpmailer.php
Description: Set SMTP username
Start with V
$Version--Attribute
From: PHPMailer::$Version
File: class.phpmailer. php
Description: Return the version of Phpmailer
Verify--method
From: SMTP::Verify()
File: class.smtp.php
Description: Check the user through the server Whether the name is verified
Starts with W:
$WordWrap--Attributes
From: PHPMailer::$WordWrap
File: class.phpmailer.php
Description: Settings The maximum number of characters per line, automatic line wrapping after exceeding the number

PHP remains important in modern web development, especially in content management and e-commerce platforms. 1) PHP has a rich ecosystem and strong framework support, such as Laravel and Symfony. 2) Performance optimization can be achieved through OPcache and Nginx. 3) PHP8.0 introduces JIT compiler to improve performance. 4) Cloud-native applications are deployed through Docker and Kubernetes to improve flexibility and scalability.

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python each have their own advantages and are suitable for different scenarios. 1.PHP is suitable for web development and provides built-in web servers and rich function libraries. 2. Python is suitable for data science and machine learning, with concise syntax and a powerful standard library. When choosing, it should be decided based on project requirements.

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

The reasons why PHP is the preferred technology stack for many websites include its ease of use, strong community support, and widespread use. 1) Easy to learn and use, suitable for beginners. 2) Have a huge developer community and rich resources. 3) Widely used in WordPress, Drupal and other platforms. 4) Integrate tightly with web servers to simplify development deployment.

PHP remains a powerful and widely used tool in modern programming, especially in the field of web development. 1) PHP is easy to use and seamlessly integrated with databases, and is the first choice for many developers. 2) It supports dynamic content generation and object-oriented programming, suitable for quickly creating and maintaining websites. 3) PHP's performance can be improved by caching and optimizing database queries, and its extensive community and rich ecosystem make it still important in today's technology stack.

In PHP, weak references are implemented through the WeakReference class and will not prevent the garbage collector from reclaiming objects. Weak references are suitable for scenarios such as caching systems and event listeners. It should be noted that it cannot guarantee the survival of objects and that garbage collection may be delayed.

The \_\_invoke method allows objects to be called like functions. 1. Define the \_\_invoke method so that the object can be called. 2. When using the $obj(...) syntax, PHP will execute the \_\_invoke method. 3. Suitable for scenarios such as logging and calculator, improving code flexibility and readability.


Hot AI Tools

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

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

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools