Home Backend Development PHP Tutorial Summary of PHPMailer Chinese Instructions_PHP Tutorial

Summary of PHPMailer Chinese Instructions_PHP Tutorial

Jul 21, 2016 pm 03:41 PM
phpmailer Chinese Instructions for use Attributes beginning document

Starting with A:

$AltBody --Attribute
From: PHPMailer: $AltBody
File: class.phpmailer.php
Note: The setting of this attribute does not support HTML in the email body Alternate display

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("to@163.com","to name"), but parameter 2 is optional, and AddAddress(to@163.com) 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 [The 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 [The 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 ");
Quote in html 🎜>Instructions: 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.?)
Parameters: string, filename [, 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 in Hello () is called after, if the authentication is successful, true is returned,
Parameter 1 username, parameter 2 password
Function prototype: public function Authenticate($username, $password) {} ​​

Starts with B

$Body --Attribute
From: PHPMailer: $Body
File: class.phpmailer .php
Description: Email content, HTML or Text format

Start with C

$CharSet --Attributes
From: PHPMailer: $CharSet
File: class.phpmailer .php
Description: Mail encoding, the default is iso-8859-1

$ConfirmReadingTo -- Attribute
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 --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 (copy 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 Mailer.html

$ContentType -- attribute
from: PHPMailer: $ContentType
File: class.phpmailer .php
Description: The type of document, the default is "text/plain"

D Beginning
$do_debug -- Attributes
from: SMTP: $do_debug
File: class.smtp.php
Description: SMTP debug output

Data - Method
from: SMTP: $Data()
File: class.smtp.php
Description: Send a data command and message information to the server (sendsthemsg_datatotheserver)

Starting 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 -- Attributes
From: PHPMailer: $ErrorInfo
File: class.phpmailer .php
Description: Return the last message in SMTP Error message

Expand --Method
From: SMTP::Expand()
File: class.smtp.php
Description: Returns all users in the mailing list. If successful, return the array, otherwise return false(Expandtakesthenameandaskstheservertolistallthepeoplewhoaremembersofthe_list_.Expandwillreturnbackandarrayoftheresultorfalseifanerroroccurs.)

F starts with:

$From --Attributes
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 name

Starts with H:

$Helo --Attributes
From: PHPMailer::$Helo
File: class.phpmailer.php
Description: Set SMTPHelo, the default is $ Hostname(SetstheSMTPHELOofthemessage(Defaultis$Hostname).)

$Host -- Attributes
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 --Attributes
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 begins:
$Password --attributes
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 -- attribute
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 --Attributes
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 transfer 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 --Attributes
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, but may support

U starting with

$Username --attribute
from: PHPMailer::$Username
File: class. phpmailer .php
Description: Set SMTP username

Start with V

$Version --Attributes
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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321190.htmlTechArticleA starts with: $AltBody --Attribute from: PHPMailer: $AltBody File: class.phpmailer .php Description: The The setting of the attribute is an alternative display of AddAddress --method that does not support HTML in the email body...
Statement of this Website
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

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set Chinese in Call of Duty: Warzone mobile game How to set Chinese in Call of Duty: Warzone mobile game Mar 22, 2024 am 08:41 AM

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

What to do if the 0x80004005 error code appears. The editor will teach you how to solve the 0x80004005 error code. What to do if the 0x80004005 error code appears. The editor will teach you how to solve the 0x80004005 error code. Mar 21, 2024 pm 09:17 PM

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

Setting up Chinese with VSCode: The Complete Guide Setting up Chinese with VSCode: The Complete Guide Mar 25, 2024 am 11:18 AM

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

How to transfer files from Quark Cloud Disk to Baidu Cloud Disk? How to transfer files from Quark Cloud Disk to Baidu Cloud Disk? Mar 14, 2024 pm 02:07 PM

Quark Netdisk and Baidu Netdisk are currently the most commonly used Netdisk software for storing files. If you want to save the files in Quark Netdisk to Baidu Netdisk, how do you do it? In this issue, the editor has compiled the tutorial steps for transferring files from Quark Network Disk computer to Baidu Network Disk. Let’s take a look at how to operate it. How to save Quark network disk files to Baidu network disk? To transfer files from Quark Network Disk to Baidu Network Disk, you first need to download the required files from Quark Network Disk, then select the target folder in the Baidu Network Disk client and open it. Then, drag and drop the files downloaded from Quark Cloud Disk into the folder opened by the Baidu Cloud Disk client, or use the upload function to add the files to Baidu Cloud Disk. Make sure to check whether the file was successfully transferred in Baidu Cloud Disk after the upload is completed. That's it

How to set Excel table to display Chinese? Excel switching Chinese operation tutorial How to set Excel table to display Chinese? Excel switching Chinese operation tutorial Mar 14, 2024 pm 03:28 PM

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 “language” option on the left

What is hiberfil.sys file? Can hiberfil.sys be deleted? What is hiberfil.sys file? Can hiberfil.sys be deleted? Mar 15, 2024 am 09:49 AM

Recently, many netizens have asked the editor, what is the file hiberfil.sys? Can hiberfil.sys take up a lot of C drive space and be deleted? The editor can tell you that the hiberfil.sys file can be deleted. Let’s take a look at the details below. hiberfil.sys is a hidden file in the Windows system and also a system hibernation file. It is usually stored in the root directory of the C drive, and its size is equivalent to the size of the system's installed memory. This file is used when the computer is hibernated and contains the memory data of the current system so that it can be quickly restored to the previous state during recovery. Since its size is equal to the memory capacity, it may take up a larger amount of hard drive space. hiber

Will wwe2k24 have Chinese? Will wwe2k24 have Chinese? Mar 13, 2024 pm 04:40 PM

"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 when writing txt files with PHP Tips for solving Chinese garbled characters when writing txt files with PHP Mar 27, 2024 pm 01:18 PM

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

See all articles