Phpmailer (Simplified Version)

Source: Internet
Author: User

Phpmailer v5.1 download

Start with:

$ 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 ("xiaoxiaoxiaoyu@xiaoxiaoyu.cn", "xiaoxiaoyu"), but parameter 2 is optional, AddAddress (xiaoxiaoxiaoyu@xiaoxiaoyu.cn) 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 SMTP connection [/color1_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
Note: All users in the email list are returned. 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.

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.