Phpmailer all objects and attributes Chinese--original translation--phpmailer user must see _php tutorial

Source: Internet
Author: User
Tags php email
Phpmailer all objects and attributes Chinese original translation Phpmailer user must see
Workaround
Objective:
Phpmailer is an excellent sender program, but the Chinese material is relatively small, so I manually translated the Phpmailer elementindex.html,e: [url=http://www.bblog.com/apidoc/ Elementindex_phpmailer.html] link Mark Http://www.bblog.com/apidoc/elementindex_phpmailer.html[/url], because the level is limited, The translation of the place may not be very accurate, I hope you have a lot of advice. Because there are more things, so divided into three posts


AC

From:
[url=http://www.xiaoxiaoyu.cn/amp/215.html] link marker Http://www.xiaoxiaoyu.cn/amp/215.html[/url]

A begins with:
$AltBody Properties
Derived from: Phpmailer:: $AltBody, File: class.phpmailer.php
Description: The setting of this property is an alternate display of HTML that is not supported in the message body
AddAddress method
Derived from: phpmailer::addaddress (), File: class.phpmailer.php
Note: Increase the recipient. Parameter 1 is the recipient's mailbox, and Parameter 2 is the recipient's salutation. Example AddAddress ("xiaoxiaoxiaoyu@xiaoxiaoyu.cn", "Xiaoxiaoyu"), but parameter 2 is optional, addaddress ([url=http://www.phpchina.com/bbs/ Mailto:xiaoxiaoxiaoyu@xiaoxiaoyu.cn] Xiaoxiaoxiaoyu@xiaoxiaoyu.cn[/url]) is also possible. Function Prototypes:
Public Function addaddress ($address, $name = ") {}
AddAttachment method
Derived from: Phpmailer::addattachment (), File: class.phpmailer.php
Note: Add attachments. Parameters: Path, name, encoding, type. Where the path is required and the other is optional
Function Prototypes:
AddAttachment ($path, $name = ', $encoding = ' base64 ', $type = ' Application/octetstream ') {}
Addbcc method
Derived from: PHPMAILER::ADDBCC (), File: class.phpmailer.php
Description: Add a secret send. The difference between CC and BCC can be seen in the [[url=http://www.xiaoxiaoyu.cn/net/214.html] link to mark the difference between BCC and CC in SMTP senders [/url]]. The parameter 1 is the address, and the parameter 2 is the name. Note This method only supports the use of SMTP under Win32, and does not support the mail function
Function Prototypes:
Public Function addbcc ($address, $name = ") {}
Addcc method
Derived from: PHPMAILER::ADDCC (), File: class.phpmailer.php
Note: Add a CC. The difference between CC and BCC can be seen in the [[url=http://www.xiaoxiaoyu.cn/net/214.html] link to mark the difference between BCC and CC in SMTP senders [/url]]. Parameter 1 is address, parameter 2 is name note This method supports SMTP only under Win32, and does not support the Mail function function prototype:
Public Function ADDCC ($address, $name = ") {}
Addcustomheader method
Derived from: Phpmailer::addcustomheader (), File: class.phpmailer.php
Description: Add a custom email header. parameter is header information
Function Prototypes:
Public Function Addcustomheader ($custom _header) {}
Addembeddedimage method
Derived from: Phpmailer::addembeddedimage (), File: class.phpmailer.php
Description: Add an embedded image. Parameters: path, return handle [, Name, encoding, type]
Function Prototypes:
Public Function Addembeddedimage ($path, $cid, $name = ', $encoding = ' base64 ', $type = ' Application/octetstream ') {}
Tip: Addembeddedimage (Picture_path. "Index_01.jpg", "img_01", "index_01.jpg");
Referencing in HTML
Addreplyto method
Derived from: Phpmailer:: Addreplyto (), File: class.phpmailer.php
Note: Add a reply label, such as "Replyto". Parameter 1 address, parameter 2 name
Function Prototypes:
Public Function Addreplyto ($address, $name = ") {}
Addstringattachment method
Derived from: Phpmailer:: Addstringattachment (), File: class.phpmailer.php
Add a string or binary attachment (Adds a string or binary attachment (Nonfilesystem) to the list. ) Parameters: string, file name [, encoding, type]
Function Prototypes:
Public Function Addstringattachment ($string, $filename, $encoding = ' base64 ', $type = ' Application/octetstream ') {}
Authenticate method
Derived from: Smtp::authenticate (), File: class.smtp.php
Description: Start SMTP authentication, must be called after Hello (), if authentication succeeds, return true, Parameter 1 username, parameter 2 password
Function Prototypes:
Public function Authenticate ($username, $password) {}
b Start
$Body Properties
Derived from: Phpmailer:: $Body file: class.phpmailer.php
Description: Message content, HTML or text format
C Start
$CharSet Properties
Derived from: Phpmailer:: $CharSet file: class.phpmailer.php
Description: Message encoding, default = iso88591
$ConfirmReadingTo Properties
Derived from: Phpmailer:: $ConfirmReadingTo file class.phpmailer.php
Description: Receipt?
$ContentType Properties
Derived from: Phpmailer:: $ContentType file: class.phpmailer.php
Description: Type of document, default to "Text/plain"
$CRLF Properties
Derived from: Phpmailer:: $ContentType file: class.phpmailer.php
Description: The delimiter for SMTP reply end (SMTP reply line ending? )
Class.phpmailer.php Object
Derived from: class.phpmailer.php file: class.phpmailer.php
Description: Phpmailer Object
Class.smtp.php Object
Derived from: class.smtp.php file: class.smtp.php
Description: The SMTP Feature Object
Clearaddresses method
Derived from: phpmailer::clearaddresses () file: class.phpmailer.php
Note: Clear the recipient to prepare for the next shipment. return type is void
Clearallrecipients method
Derived from: phpmailer::clearallrecipients () file: class.phpmailer.php
Description: Clear all recipients, including CC (CC) and Bcc (secret send)
Clearattachments method
Derived from: phpmailer::clearattachments () file: class.phpmailer.php
Description: Clear Attachment
Clearbccs method
Derived from: Phpmailer::clearbccs () file class.phpmailer.php
Description: Clear Bcc (Secret send)
Clearcustomheaders method
Derived from: Phpmailer::clearcustomheaders () file: class.phpmailer.php
Description: Clear the custom header
Clearreplytos method
Derived from: Phpmailer::clearreplytos () file: class.phpmailer.php
Explanation: Clear Reply person
Close method
Derived from: Smtp::close () file: class.smtp.php
Description: Close an SMTP connection
Connect method
Derived from: Smtp::connect () file: class.smtp.php
Description: Establish an SMTP connection


d8888d Huitie Content
Dn
From:[url=http://www.xiaoxiaoyu.cn/amp/216.html] link marker Http://www.xiaoxiaoyu.cn/amp/216.html[/url]


D Start
$do _DEBUG Properties
Originating from: SMTP:: $do _debug File: class.smtp.php
Description: SMTP Debug output
Data method
Originating from: SMTP::D ata () file: class.smtp.php
Description: Sends a data command and message information to the server (sends the Msg_data to the server)
E start
$Encoding Properties
Derived from: Phpmailer:: $Encoding file: class.phpmailer.php
Description: Set the encoding method of the message, Optional: "8bit", "7bit", "binary", "base64", and "quotedprintable".
$ErrorInfo Properties
Derived from: Phpmailer:: $ErrorInfo file: class.phpmailer.php
Description: Returns the last error message in Mail SMTP
Expand method
Derived from: Smtp::expand () file: class.smtp.php
Description: Returns all users in the mailing list. Success returns an array, otherwise false (Expand takes the name and asks the server to list all the people who is members of the _list_. Expand would return back and array of the result or false if an error occurs.)
F Start:
$From Properties
Derived from: Phpmailer:: $From file class.phpmailer.php
Description: Sender Email Address
$FromName Properties
Derived from: Phpmailer:: $FromName file: class.phpmailer.php
Description: Sender Salutation
H Start:
$Helo Properties
Derived from: Phpmailer:: $Helo file: class.phpmailer.php
Description: Set SMTP Helo, default is $hostname (sets the SMTP Helo of the message (default is $Hostname).)
$Host Properties
Derived from: Phpmailer:: $Host file: class.phpmailer.php
Description: Set the SMTP server in the format: hostname [port number], such as smtp1.example.com:25 and smtp2.example.com are legal
$Hostname Properties
Derived from: Phpmailer:: $Hostname file: class.phpmailer.php
Description: Set hostname in MessageID and and Received headers and be used by $helo at the same time. If blank, the default is server_name or ' localhost.localdomain '
Hello method
Derived from: Smtp::hello () file: class.smtp.php
Description: Send the HELO command to the SMTP server
Help method
Derived from: Smtp::help () file: class.smtp.php
Description: If there are keywords, get help information for keywords
I begin with:
IsError method
Derived from: Phpmailer::iserror () file: class.phpmailer.php
Description: Returns whether an error occurred
IsHTML method
Derived from: phpmailer::ishtml () file: class.phpmailer.php
Description: Sets whether the letter is in HTML format
IsMail method
Derived from: Phpmailer::ismail () file: class.phpmailer.php
Description: Set whether to use PHP's mail function to send a piece
Isqmail method
Derived from: Phpmailer::isqmail () file: class.phpmailer.php
Description: Set whether to use the QMail MTA to send a piece
Issendmail method
Derived from: Phpmailer::issendmail () file: class.phpmailer.php
Description: Whether to use the $sendmail program to send a piece
Issmtp method
Derived from: Phpmailer::issmtp () file: class.phpmailer.php
Description: Whether to send a piece using SMTP
M Start:
$Mailer Properties
Derived from: Phpmailer:: $Mailer file: class.phpmailer.php
Description: Sender mode, ("Mail", "SendMail", or "SMTP"). One of the
Mail method
Derived from: Smtp::mail () file: class.smtp.php
Description: Returns TRUE or false, starting with a mail address in $from. If true, the sender is started
N begins with:
Noop method
Derived from: Smtp::noop () file: class.smtp.php
Description: Send an NOOP command to the SMTP server
d8888d Huitie Content
PW
From:[url=http://www.xiaoxiaoyu.cn/amp/217.html] link marker Http://www.xiaoxiaoyu.cn/amp/217.html[/url]

P begins with:
$Password Properties
Derived from: Phpmailer:: $Password file: class.phpmailer.php
Description: Set the password for SMTP
$PluginDir Properties
Derived from: Phpmailer:: $PluginDir file: class.phpmailer.php
Description: Set the plugin directory for Phpmailer, only if SMTP class is not valid in the Phpmailer directory
$Port Properties
Derived from: Phpmailer:: $Port file: class.phpmailer.php
Description: Set the port number for SMTP
$Priority Properties
Derived from: Phpmailer:: $Priority file: class.phpmailer.php
Note: Set the message delivery priority level. 1 = emergency, 3 = normal, 5 = not urgent
Phpmailer Object
Derived from: Phpmailer file: class.phpmailer.php
Description: Phpmailer PHP Email Transport class
Q Start
Quit method
Derived from: Smtp::quit () file: class.smtp.php
Description: Sends a QUIT command to the server if no error occurs. So turn off sock, or $close_on_error to True
R start
Recipient method
Derived from: Smtp::recipient () file: class.smtp.php
Description: Use to send the RCPT command to SMTP with the parameters: $to
Reset method
Derived from: Smtp::reset () file: class.smtp.php
Description: Sends the RSET command to cancel processing in transit. Success returns TRUE, otherwise false
S start:
$Sender Properties
Derived from: Phpmailer:: $Sender file: class.phpmailer.php
Description: Sets the Sender email (returnpath) of the message. If not empty, 'll be sent via F to sendmail or as ' MAIL from ' in SMTP mode.
$Sendmail Properties
Derived from: Phpmailer:: $Sendmail file: class.phpmailer.php
Description: Set the directory for the sender program
$SMTPAuth Properties
Derived from: Phpmailer:: $SMTPAuth file: class.phpmailer.php
Description: Set whether SMTP requires authentication, use username and password variables
$SMTPDebug Properties
Derived from: Phpmailer:: $SMTPDebug file: class.phpmailer.php
Description: Set SMTP to debug output?
$SMTPKeepAlive Properties
Derived from: Phpmailer:: $SMTPKeepAlive file: class.phpmailer.php
Note: Do not close the connection after each sender. If true, you must use Smtpclose () to close the connection
$SMTP _port Properties
Originating from: SMTP:: $SMTP _port File: class.smtp.php
Description: Set the SMTP port
$Subject Properties
Derived from: Phpmailer:: $Subject file: class.phpmailer.php
Description: Set the subject of the letter
Send method
Derived from: Smtp::send () file: class.smtp.php
Note: Start a message transfer from the specified e-mail address
Send method
Derived from: Phpmailer::send () file: class.phpmailer.php
Description: Create a message and develop a sender program. Returns False if the sender is unsuccessful, use ErrorInfo to view the error message
Sendandmail method
Derived from: Smtp::sendandmail () file: class.smtp.php
Note: Start a message transfer from the specified e-mail address
Sendormail method
Derived from: Smtp::sendormail () file: class.smtp.php
Note: Start a message transfer from the specified e-mail address
SetLanguage method
Derived from: Phpmailer::setlanguage () file: class.phpmailer.php
Description: Sets the language type of the Phpmailer error message, returns False if the language file cannot be loaded, and defaults to 中文版
SMTP method
Derived from: Smtp::smtp () file: class.smtp.php
Description: Initialize an object so that the data is in a known state
SMTP Object
Originating from: SMTP file: class.smtp.php
Description: SMTP Object
Smtpclose method
Derived from: Phpmailer::smtpclose () file: class.phpmailer.php
Description: If there is an active SMTP, close it.
T start
$Timeout Properties
Derived from: Phpmailer:: $Timeout file: class.phpmailer.php
Description: Set the timeout (in seconds) for the SMTP server. Note: This property is not valid under Win32

Turn method
Derived from: Smtp::turn () file: class.smtp.php
Description: This is an optional SMTP parameter, currently Phpmailer does not support him and may support future
U start
$Username Properties
Derived from: Phpmailer:: $Username file: class.phpmailer.php
Description: Set the SMTP user name
V Start
$Version Properties
Derived from: Phpmailer:: $Version file: class.phpmailer.php
Description: Returns the version of Phpmailer
Verify method
Derived from: smtp::verify () file: class.smtp.php
Description: Checks whether the user name has been verified by the server
W Start:
$WordWrap Properties
Derived from: Phpmailer:: $WordWrap file: class.phpmailer.php
Description: Sets the maximum number of characters per line, and wraps it more than the number of changes.

[ ]
d8888d Huitie Content
So much has been studied.
d8888d Huitie Content
Good stuff for everyone to share!
d8888d Huitie Content
[Img]http://www.phpchina.com/bbs/images/smilies/default/15.gif[/img]

http://www.bkjia.com/PHPjc/632529.html www.bkjia.com true http://www.bkjia.com/PHPjc/632529.html techarticle Phpmailer all objects and attributes Chinese original translation Phpmailer user must see solution foreword: Phpmailer is an excellent sender program, but Chinese information is relatively small, so I manually ...

  • 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.