All phpmailer objects and attributes (Chinese)-Original translation-required for phpmailer users

Source: Internet
Author: User
Tags php email




Phpmailer all objects and attributes original Chinese translation phpmailer users must see
Solution
Preface:
Phpmaileris an excellent sending program. However, phpmailer's elementindex.html and E files are manually translated. There are many things, so there are three posts


AC

From:
[Url = Response

Start with:
$ AltBody attributes
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 ([url = Hangzhou) 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/etetstream '){}
AddBCC Method
From: PHPMailer: AddBCC (), file: class. phpmailer. php
Note: Add a BCC. For the differences between CC and BCC, see [[url = BCC. 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 [[url = BCC. 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 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
Note: add an embedded image. Parameter: path, return handle [, name, encoding, type]
Function prototype:
Public function AddEmbeddedImage ($ path, $ cid, $ name = '', $ encoding = 'base64', $ type = 'application/etetstream '){}
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 "Replyto ". Parameter 1 Address, parameter 2 Name
Function prototype:
Public function AddReplyTo ($ address, $ name = ''){}
AddStringAttachment Method
From: PHPMailer: AddStringAttachment (), file: class. phpmailer. php
Description; add a string or binary attachment (Adds a string or binary attachment (nonfilesystem) to the list .?) Parameter: String, file name [, encoding, type]
Function prototype:
Public function AddStringAttachment ($ string, $ filename, $ encoding = 'base64', $ type = 'application/etetstream '){}
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 attributes
From: PHPMailer ::$ Body file: class. phpmailer. php
Description: email content, in HTML or Text format
C
$ CharSet attributes
From: PHPMailer ::$ CharSet file: class. phpmailer. php
Description: email code. The default value is iso88591.
$ 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 attributes
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
Creates an SMTP connection.


D8888D reply content
DN
From: [url = Response


Starting with D
$ Do_debug attributes
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 (sends the msg_data to the server) to the server)
Start with E
$ Encoding attributes
From: PHPMailer ::$ Encoding file: class. phpmailer. php
Description: sets the email encoding method. Optional values: "8bit", "7bit", "binary", "base64", and "quotedprintable ".
$ ErrorInfo attributes
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 (Expand takes the name and asks the server to list all the people who are members of the _ list _. expand will return back and array of the result or false if an error occurs .)
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: Set SMTP Helo. the Default value is $ Hostname (Sets the smtp helo of the message (Default is $ Hostname ).)
$ Host attributes
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 MessageId and Received headers 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 qmail MTA 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.
D8888D reply content
PW
From: [url = Response

Start with P:
$ Password attribute
From: PHPMailer ::$ Password File: class. phpmailer. php
Note: Set the SMTP password.
$ PluginDir attributes
From: PHPMailer ::$ PluginDir file: class. phpmailer. php
Description: sets the phpmailer plug-in Directory, which is only valid when the smtp class is not in the phpmailer directory.
$ Port attribute
From: PHPMailer ::$ Port file: class. phpmailer. php
Description: sets the SMTP port number.
$ Priority attributes
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 PHP email transport class
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 attributes
From: PHPMailer ::$ Sender file: class. phpmailer. php
Note: Sets the Sender email (ReturnPath) of the message. If not empty, will be sent via f to sendmail or as 'mail FROM 'in smtp mode.
$ Sendmail attributes
From: PHPMailer ::$ Sendmail File: class. phpmailer. php
Description: sets the directory of the sender program.
$ SMTPAuth attributes
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 attributes
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 attributes
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 attributes
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 attributes
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.

[]
D8888D reply content
So much research is needed.
D8888D reply content
Good stuff for everyone!
D8888D reply content
[Img] http://www.phpchina.com/bbs/images/smilies/default/15.gif#/img]

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.