All phpmailer objects and attributes (Chinese) -- Original translation -- phpmailer users are required to read _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Tags php email
All phpmailer objects and attributes-original translation-required for phpmailer users. Phpmailer: phpmailer is an excellent Sender program, but it has little Chinese information, so I manually 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]

Phpmailer is an excellent Sender program, but there is little Chinese information, so I manually...

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.