search
HomeBackend DevelopmentPHP Tutorialmy heart will go on piano phpmailer Chinese instructions (simplified version)

phpmailer v5.1 download
Starts with A:
$AltBody--attribute
From: PHPMailer::$AltBody
File: class.phpmailer.php
Description: The setting of this attribute is an alternative display that does not support HTML in the email body
AddAddress --Method
From: PHPMailer::AddAddress(), file: class.phpmailer.php
Description: Add recipients. 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 BCC. 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 ");
Referenced in html
AddReplyTo--method
From: PHPMailer:: AddReplyTo()
File: class.phpmailer.php
Description: Add a reply label, 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.?)
Parameters: 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: To start SMTP authentication, it 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
$Body--attribute
From: PHPMailer::$Body
File: class.phpmailer.php
Description: Email content, HTML or Text format
Start with C
$CharSet--property
from: PHPMailer::$CharSet
File: class.phpmailer.php
Description: Email encoding, the default is iso-8859-1
$ConfirmReadingTo--property
from: PHPMailer::$ConfirmReadingTo file class .phpmailer.php
Description: Receipt?
$ContentType--Attribute
From: PHPMailer::$ContentType
File: class.phpmailer.php
Description: The type of document, the default is "text/plain"
$CRLF--Attribute
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
From: class.smtp.php File: class.smtp.php
Description: SMTP function object
ClearAddresses--Method
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 (CC) 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: Clearly reply to the 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--property
From: PHPMailer::$ContentType
File: class.phpmailer.php
Description :The type of document, the default is "text/plain"
D starts with
$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)
Start 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--Attribute
From: PHPMailer: :$ErrorInfo
File: class.phpmailer.php
Description: Return the last error message in the email SMTP
Expand--Method
From: SMTP::Expand()
File: class.smtp.php
Description: Return the email All users in the list. If successful, return the array, otherwise return false(Expandtakesthenameandaskstheservertolistallthepeoplewhoaremembersofthe_list_.Expandwillreturnbackandarrayoftheresultorfalseifanerroroccurs.)
Start with F:
$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: The sender's name
Starts with H:
$Helo--Attribute
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 up SMTP server , the format is: hostname [port number], such as smtp1.example.com:25 and smtp2.example.com are legal
$Hostname--attribute
From: PHPMailer::$Hostname
File: class.phpmailer. php
Explanation: 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: Send HELO command to SMTP server
Help--method
From: SMTP::Help()
File: class.smtp.php
Description: If there is a keyword, get the help information of the keyword
Start with I:
IsError--method
From: PHPMailer::IsError()
File :class.phpmailer.php
Description: Return whether 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 emails
IsQmail--Method
From:PHPMailer::IsQmail()
File: class.phpmailer. php
Description: Set whether to use qmailMTA to send mail
IsSendmail--Method
From: PHPMailer::IsSendmail()
File: class.phpmailer.php
Description: Whether to use the $Sendmail program to send mail
IsSMTP--Method
From: PHPMailer::IsSMTP()
File: class.phpmailer.php
Description: Whether to use SMTP to send emails
Start with M:
$Mailer--attribute
From: PHPMailer::$Mailer
File: class.phpmailer. php
Description: One of the sending methods, ("mail", "sendmail", or "smtp").
Mail--method
comes 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 mail
Start with N:
Noop--Method
From: SMTP::Noop()
File: class.smtp.php
Description: Send a NOOP command to the SMTP server
Start with P:
$ Password--attribute
from: PHPMailer::$Password
File: class.phpmailer.php
Description: Set the SMTP password
$PluginDir--attribute
from: PHPMailer::$PluginDir
File: class.phpmailer.php
Description: Set the phpmailer plug-in directory, which is only valid when smtpclass is not 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
Start with Q
Quit--Method
From: SMTP::Quit ()
File: class.smtp.php
Description: Send Quit command to the server, if no error occurs. Then close the sock, otherwise $close_on_error is true
Start with R
Recipient--method
From: SMTP::Recipient()
File: class.smtp.php
Instructions: Use To to send RCPT command to SMTP, the parameter is: $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
Starts with S:
$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 Username and Password variables
$SMTPDebug--attribute
From: PHPMailer::$SMTPDebug
File: class.phpmailer.php
Description: Set whether SMTP Debug output?
$SMTPKeepAlive--property
From: PHPMailer::$SMTPKeepAlive
File: class.phpmailer.php
Description: Do not close the connection after each sending. If true, then SmtpClose() must be used to close the connection
$SMTP_PORT--property
From: SMTP::$SMTP_PORT
File: class.smtp.php
Description: Set the SMTP port
$Subject--property
from :PHPMailer::$Subject
File: class.phpmailer.php
Description: Set the subject of the letter
Send--method
From: SMTP::Send()
File: class.smtp.php
Description: From the specified email The address starts an email transmission
Send--Method
From: PHPMailer::Send()
File: class.phpmailer.php
Instructions: Create an email and develop a sending program. If the sending is unsuccessful, false is returned, please use ErrorInfo to view the error message
SendAndMail--Method
From: SMTP::SendAndMail()
File: class.smtp.php
Description: Start an email from the specified email address Transmission
SendOrMail--Method
From: SMTP::SendOrMail()
File: class.smtp.php
Description: Start an email transmission from the specified 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--Attribute
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 an optional SMTP parameter, currently phpmailer does not support it. May support
U starting with
$Username--attribute
From: PHPMailer::$Username
File: class.phpmailer.php
Instructions: Set the SMTP username
Starting 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 whether the username is verified through the server
Starts with W:
$WordWrap--Attribute
From: PHPMailer::$WordWrap
File: class.phpmailer.php
Description: Set the maximum number of characters per line, and automatically wrap after the number is exceeded

The above introduces the Chinese instruction manual of my heart will go on piano phpmailer (simplified version), including the content of my heart will go on piano. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How do you create and use an interface in PHP?How do you create and use an interface in PHP?Apr 30, 2025 pm 03:40 PM

The article explains how to create, implement, and use interfaces in PHP, focusing on their benefits for code organization and maintainability.

What is the difference between crypt() and password_hash()?What is the difference between crypt() and password_hash()?Apr 30, 2025 pm 03:39 PM

The article discusses the differences between crypt() and password_hash() in PHP for password hashing, focusing on their implementation, security, and suitability for modern web applications.

How can you prevent Cross-Site Scripting (XSS) in PHP?How can you prevent Cross-Site Scripting (XSS) in PHP?Apr 30, 2025 pm 03:38 PM

Article discusses preventing Cross-Site Scripting (XSS) in PHP through input validation, output encoding, and using tools like OWASP ESAPI and HTML Purifier.

What is autoloading in PHP?What is autoloading in PHP?Apr 30, 2025 pm 03:37 PM

Autoloading in PHP automatically loads class files when needed, improving performance by reducing memory use and enhancing code organization. Best practices include using PSR-4 and organizing code effectively.

What are PHP streams?What are PHP streams?Apr 30, 2025 pm 03:36 PM

PHP streams unify handling of resources like files, network sockets, and compression formats via a consistent API, abstracting complexity and enhancing code flexibility and efficiency.

What is the maximum size of a file that can be uploaded using PHP ?What is the maximum size of a file that can be uploaded using PHP ?Apr 30, 2025 pm 03:35 PM

The article discusses managing file upload sizes in PHP, focusing on the default limit of 2MB and how to increase it by modifying php.ini settings.

What is Nullable types in PHP ?What is Nullable types in PHP ?Apr 30, 2025 pm 03:34 PM

The article discusses nullable types in PHP, introduced in PHP 7.1, allowing variables or parameters to be either a specified type or null. It highlights benefits like improved readability, type safety, and explicit intent, and explains how to declar

What is the difference between the unset() and unlink() functions ?What is the difference between the unset() and unlink() functions ?Apr 30, 2025 pm 03:33 PM

The article discusses the differences between unset() and unlink() functions in programming, focusing on their purposes and use cases. Unset() removes variables from memory, while unlink() deletes files from the filesystem. Both are crucial for effec

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools