PHPMailer Chinese instructions _ PHP Tutorial

Source: Internet
Author: User
PHPMailer description. Starting with A: $ AltBody -- attribute from: PHPMailer: $ AltBody File: class. phpmailer. php description: This attribute is set to begin with AddAddress -- Method A, which does not support HTML standby display in the mail body:

$ AltBody -- attribute
From: PHPMailer: $ AltBody
File: class. phpmailer. php
Note: the setting of this attribute is that HTML standby display is not supported in the mail body.

AddAddress -- method
From: PHPMailer: AddAddress (), File: class. phpmailer. php
Note: Add recipients. Parameter 1 is the recipient's mailbox, and parameter 2 is the recipient's name. Example AddAddress ("to@163.com", "to name"), but parameter 2 is optional, AddAddress (to@163.com) is also possible.
Function prototype: public function AddAddress ($ address, $ name = ''){}

AddAttachment -- method
From: PHPMailer: AddAttachment ()
File: class. phpmailer. php.
Note: add attachments.
Parameter: Path, name, encoding, type. 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
Note: add a BCC. For the differences between CC and BCC, see [differences between BCC and CC in SMTP sending].
Parameter 1 is the address and parameter 2 is the name. Note that this method only supports SMTP in win32 and does not support the mail function.
Function prototype: public function AddBCC ($ address, $ name = ''){}

AddCC -- method
From: PHPMailer: AddCC ()
File: class. phpmailer. php
Note: add a CC. For the differences between CC and BCC, see [differences between BCC and CC in SMTP sending].
Parameter 1 is the address and parameter 2 is the name. Note that this method only supports SMTP in win32 and does not support the mail function.
Function prototype: public function AddCC ($ address, $ name = ''){}

AddCustomHeader -- method
From: PHPMailer: AddCustomHeader ()
File: class. phpmailer. php
Note: add a custom email header.
The parameter is the header information.
Function prototype: public function AddCustomHeader ($ custom_header ){}

AddEmbeddedImage -- method
From: PHPMailer: AddEmbeddedImage ()
File: class. phpmailer. php
Add an embedded image.
Parameter: Path, return handle [, name, encoding, type]
Function prototype: public function AddEmbeddedImage ($ path, $ cid, $ name = '', $ encoding = 'base64', $ type = 'application/octet-stream '){}
Tip: AddEmbeddedImage (PICTURE_PATH. "index_01.jpg", "img_01", "index_01.jpg ");
Reference in html

AddReplyTo -- method
From: PHPMailer: AddReplyTo ()
File: class. phpmailer. php
Note: add a Reply tag, such as "Reply-"
Parameter 1 address, parameter 2 name
Function prototype: public function AddReplyTo ($ address, $ name = ''){}

AddStringAttachment-method
From: PHPMailer: AddStringAttachment ()
File: class. phpmailer. php
Note: add a string or binary attachment (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
Note: To start SMTP authentication, it must be called after Hello (). If the authentication succeeds, true is returned,
Parameter 1 user name, parameter 2 password
Function prototype: public function Authenticate ($ username, $ password ){}

Start with B

$ Body -- attribute
From: PHPMailer: $ Body
File: class. phpmailer. php
Description: email content, in HTML or Text format

C

$ CharSet -- attribute
From: PHPMailer: $ CharSet
File: class. phpmailer. php
English version (mail encoding, the default is ISO-8859-1)

$ ConfirmReadingTo -- attribute
From: PHPMailer: $ ConfirmReadingTo File class. phpmailer. php
Note: receipt?

$ ContentType -- attribute
From: PHPMailer: $ ContentType
File: class. phpmailer. php
Description: Document Type. the default value is "text/plain"

$ CRLF -- attribute
From: PHPMailer: $ ContentType
File: class. phpmailer. php
Note: 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 objects

ClearAddresses -- method
From: PHPMailer: ClearAddresses ()
File: class. phpmailer. php
Note: Clear the recipient to prepare for the next sending. The return type is void.

ClearAllRecipients -- method
From: PHPMailer: ClearAllRecipients ()
File: class. phpmailer. php
Note: clear all recipients, including CC (CC) and BCC (BCC)

ClearAttachments -- method
From: PHPMailer: ClearAttachments ()
File: class. phpmailer. php
Note: clear attachments

ClearBCCs -- method
From: PHPMailer: ClearBCCs () file class. phpmailer. php
Note: clear BCC)

ClearCustomHeaders -- method
From: PHPMailer: ClearCustomHeaders ()
File: class. phpmailer. php
Note: clear custom headers

ClearReplyTos -- method
From: PHPMailer: ClearReplyTos ()
File: class. phpmailer. php
Note: Clear the respondent

Close -- method
From: SMTP: Close ()
File: class. smtp. php
Disables an SMTP connection.

Connect -- method
From: SMTP: Connect ()
File: class. smtp. php
Note: Create an smtpconnection mailer.html

$ ContentType -- attribute
From: PHPMailer: $ ContentType
File: class. phpmailer. php
Description: Document Type. the default value is "text/plain"

Starting with D
$ Do_debug -- attribute
From: SMTP: $ do_debug
File: class. smtp. php
Note: SMTP debugging output

Data-method
From: SMTP: $ Data ()
File: class. smtp. php
Description: Sends a data command and message to the server (sendsthemsg_datatotheserver)

Start with E

$ Encoding -- attribute
From: PHPMailer: $ Encoding
File: class. phpmailer. php
Description: sets the email encoding method. optional values: "8bit", "7bit", "binary", "base64", and "quoted-printable ".

$ ErrorInfo -- attribute
From: PHPMailer: $ ErrorInfo
File: class. phpmailer. php
Returns the last error message in SMTP.

Expand -- method
From: SMTP: Expand ()
File: class. smtp. php
Description: return to all users in the email list. If the call succeeds, an array is returned. otherwise, false is returned .)

F:

$ From -- attribute
From: PHPMailer ::$ From File class. phpmailer. php
Description: sender's email address.
$ FromName -- attribute
From: PHPMailer ::$ FromName
File: class. phpmailer. php
Description: sender's name.

H:

$ Helo -- attributes
From: PHPMailer ::$ Helo
File: class. phpmailer. php
Note: SMTPHelo is set. the default value is $ Hostname (SetstheSMTPHELOofthemessage (Defaultis $ Hostname ).)

$ Host -- attribute
From: PHPMailer ::$ Host
File: class. phpmailer. php
Note: Set the SMTP server in the format of host name [port number]. for example, smtp1.example.com: 25 and smtp2.example.com are both valid.

$ Hostname -- attribute
From: PHPMailer ::$ Hostname
File: class. phpmailer. php
Note: the hostname in Message-Id and andReceivedheaders is set and used by $ Helo at the same time. If it is null, the default value is SERVER_NAME or 'localhost. localdomain"

Hello -- method
From: SMTP: Hello ()
File: class. smtp. php
Note: The HELO command is sent to the SMTP server.

Help -- method
From: SMTP: Help ()
File: class. smtp. php
Note: If keyword exists, obtain help information for the keyword.

Start with I:

IsError -- method
From: PHPMailer: IsError ()
File: class. phpmailer. php
Indicates whether an error is returned.

IsHTML -- method
From: PHPMailer: IsHTML ()
File: class. phpmailer. php
Sets whether a letter is in HTML format.

IsMail -- method
From: PHPMailer: IsMail ()
File: class. phpmailer. php
Note: set whether to use the mail function of php for sending.

IsQmail -- method
From: PHPMailer: IsQmail ()
File: class. phpmailer. php
Description: Sets whether to use qmailMTA for sending.

IsSendmail -- method
From: PHPMailer: IsSendmail ()
File: class. phpmailer. php
Indicates whether to use the $ Sendmail program to send mails.

IsSMTP -- method
From: PHPMailer: IsSMTP ()
File: class. phpmailer. php
Indicates whether to use SMTP for sending.

Start 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
Note: If an email address in $ from is processed, true or false is returned. If it is true, start sending

Starting with N:

Noop -- method
From: SMTP: Noop ()
File: class. smtp. php
Sends a NOOP command to the SMTP server.

Start with P:
$ Password -- attribute
From: PHPMailer ::$ Password
File: class. phpmailer. php
Note: Set the SMTP password.

$ PluginDir -- attribute
From: PHPMailer ::$ PluginDir
File: class. phpmailer. php
Description: sets the phpmailer plug-in directory, which is only valid when smtpclass is not in the phpmailer directory.

$ Port -- attribute
From: PHPMailer: $ Port
File: class. phpmailer. php
Description: sets the SMTP port number.

$ Priority -- attribute
From: PHPMailer ::$ Priority
File: class. phpmailer. php
Note: mail delivery priority is set. 1 = urgent, 3 = normal, 5 = not urgent

PHPMailer -- object
From: PHPMailer
File: class. phpmailer. php
Php: PHPMailer-PHPemailtransportclass

Start with Q

Quit -- method
From: SMTP: Quit ()
File: class. smtp. php
Note: Send the Quit command to the server. If no error occurs. Disable sock, otherwise $ close_on_error is true.

R

Recipient -- method
From: SMTP: Recipient ()
File: class. smtp. php
Note: Use To to send the RCPT command To SMTP. the parameter is $.

Reset -- method
From: SMTP: Reset ()
File: class. smtp. php
Note: The RSET command is sent to cancel transmission during processing. True is returned if the call succeeds. otherwise, false is returned.

Starting with S:

$ Sender -- attribute
From: PHPMailer ::$ Sender
File: class. phpmailer. php
Note: SetstheSenderemail (Return-Path) ofthemessage. Ifnotempty, willbesentvia-ftosendmailoras 'mailfrom' insmtpmode.

$ Sendmail -- attributes
From: PHPMailer ::$ Sendmail
File: class. phpmailer. php
Description: sets the Directory of the sender program.

$ SMTPAuth -- attribute
From: PHPMailer ::$ SMTPAuth
File: class. phpmailer. php
Description: Sets whether SMTP authentication is required. the Username and Password variables are used.

$ SMTPDebug -- attributes
From: PHPMailer ::$ SMTPDebug
File: class. phpmailer. php
Note: set whether to debug the SMTP output?

$ SMTPKeepAlive -- attribute
From: PHPMailer ::$ SMTPKeepAlive
File: class. phpmailer. php
Note: Do not close the connection after each sending. If the value is true, SmtpClose () must be used to close the connection.

$ SMTP_PORT -- attribute
From: SMTP: $ SMTP_PORT
File: class. smtp. php
Note: Set the SMTP Port

$ Subject -- attribute
From: PHPMailer ::$ Subject
File: class. phpmailer. php
Note: Set the subject of a letter.

Send -- method
From: SMTP: Send ()
File: class. smtp. php
Note: An email is transmitted from the specified email address.

Send -- method
From: PHPMailer: Send ()
File: class. phpmailer. php
Note: create an email and develop a sender program. If the sending fails, false is returned. use ErrorInfo to view the error message.

SendAndMail -- method
From: SMTP: SendAndMail ()
File: class. smtp. php
Note: An email is transmitted from the specified email address.

SendOrMail -- method
From: SMTP: SendOrMail ()
File: class. smtp. php
Note: An email is transmitted from the specified email address.

SetLanguage -- method
From: PHPMailer: SetLanguage ()
File: class. phpmailer. php
Description: sets the language type of the phpmailer error message. if the language file cannot be loaded, false is returned. the default value is english.

SMTP -- method
From: SMTP ()
File: class. smtp. php
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
Note: If an active SMTP exists, disable it.

Starting with T

$ Timeout -- attribute
From: PHPMailer ::$ Timeout
File: class. phpmailer. php
Note: Set the SMTP server timeout (unit: seconds ). Note: In win32, this attribute is invalid.

Turn -- method
From: SMTP: Turn ()
File: class. smtp. php
Note: This is an optional SMTP parameter. currently phpmailer does not support this parameter and may be supported in the future.

U

$ Username -- attribute
From: PHPMailer ::$ Username
File: class. phpmailer. php
Sets the SMTP user name.

V

$ Version -- attribute
From: PHPMailer ::$ Version
File: class. phpmailer. php
Returns the Phpmailer version.

Verify -- method
From: SMTP: Verify ()
File: class. smtp. php
Note: Check whether the user name has been verified through the server

Start with W:

$ WordWrap -- attribute
From: PHPMailer ::$ WordWrap
File: class. phpmailer. php
Description: sets the maximum number of characters in each line. The line breaks automatically when the number is exceeded.

Attributes $ AltBody -- attributes from: PHPMailer: $ AltBody File: class. phpmailer. php description: This attribute is set to the AddAddress method that does not support HTML display in the mail body...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.