Phpmailer Chinese Use Instructions (Simplified version) _php Foundation

Source: Internet
Author: User

Phpmailer v5.1 Download

A begins:

$AltBody--Properties
Originated from: Phpmailer:: $AltBody
File: class.phpmailer.php
Description: This property is set to an alternate display that does not support HTML in the message body

addaddress--method
From: Phpmailer::addaddress (), File: class.phpmailer.php
Description: 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 (xiaoxiaoxiaoyu@xiaoxiaoyu.cn) is also possible.
Function prototype: Public function addaddress ($address, $name = ' ") {}

addattachment--method
Derived from: Phpmailer::addattachment ()
File: class.phpmailer.php.
Description: Add accessories.
Parameters: Path, name, encoding, type. Where the path is required, others are optional
Function Prototypes:
AddAttachment ($path, $name = ', $encoding = ' base64 ', $type = ' Application/octet-stream ') {}

addbcc--method
Derived from: PHPMAILER::ADDBCC ()
File: class.phpmailer.php
Description: Add a secret send. The difference between CC and BCC see [the difference between BCC and CC in SMTP senders].
Parameter 1 is the address, and parameter 2 is the name. Note This method only supports the use of SMTP under Win32, and does not support mail functions
Function prototype: Public function addbcc ($address, $name = ' ") {}

ADDCC--method
Derived from: PHPMAILER::ADDCC ()
File: class.phpmailer.php
Description: Add a CC. The difference between CC and BCC see [the difference between BCC and CC in SMTP senders].
Parameter 1 is the address, parameter 2 is the name note This method only supports the use of SMTP under Win32, and does not support mail functions
Function prototype: Public function ADDCC ($address, $name = ' ") {}

addcustomheader--method
Derived from: Phpmailer::addcustomheader ()
File: class.phpmailer.php
Description: Add a custom email head.
parameter is header information
Function prototype: Public function Addcustomheader ($custom _header) {}

Addembeddedimage--method
Derived from: Phpmailer::addembeddedimage ()
File: class.phpmailer.php
Description: Add an embedded picture
Parameters: path, return handle [, Name, encoding, type]
Function prototypes: Public function Addembeddedimage ($path, $cid, $name = ', $encoding = ' base64 ', $type = ' Application/octet-stream ') { }
Hint: Addembeddedimage (picture_path. "Index_01.jpg", "img_01", "index_01.jpg");
Referencing in HTML

addreplyto--method
Originated from: Phpmailer:: Addreplyto ()
File: class.phpmailer.php
Description: Increase the reply label, such as "reply-to"
Parameter 1 address, parameter 2 name
Function prototype: Public function Addreplyto ($address, $name = ' ") {}

Addstringattachment-method
Originated 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.? )
Parameters: string, filename [, encoding, type]
Function prototypes: Public function Addstringattachment ($string, $filename, $encoding = ' base64 ', $type = ' Application/octet-stream ') { }

authenticate--method
Derived from: Smtp::authenticate ()
File: class.smtp.php
Note: Start SMTP authentication, it must be called after Hello (), if the authentication succeeds, return True,
Parameter 1 username, parameter 2 password
Function prototype: Public function Authenticate ($username, $password) {}

b Start

$Body--Properties
Originated from: Phpmailer:: $Body
File: class.phpmailer.php
Description: Message content, HTML or text format

C Start

$CharSet--Properties
Originated from: Phpmailer:: $CharSet
File: class.phpmailer.php
Description: Message encoding, default to Iso-8859-1

$ConfirmReadingTo--Properties
Originated from: Phpmailer:: $ConfirmReadingTo file class.phpmailer.php
Description: Receipt?

$ContentType--Properties
Originated from: Phpmailer:: $ContentType
File: class.phpmailer.php
Description: The type of document, default to "Text/plain"

$CRLF--Properties
Originated from: Phpmailer:: $ContentType
File: class.phpmailer.php
Description: The separator that ends the SMTP reply (SMTP reply line ending?) )

class.phpmailer.php--objects
Originated from: class.phpmailer.php
File: class.phpmailer.php
Description: Phpmailer Object

class.smtp.php--objects
Originated from: class.smtp.php file: class.smtp.php
Description: Objects for SMTP features

clearaddresses--method
Derived from: phpmailer::clearaddresses ()
File: class.phpmailer.php
Description: Clear the recipient to prepare for the next shipment. return type is void

clearallrecipients--method
Derived from: phpmailer::clearallrecipients ()
File: class.phpmailer.php
Description: Clears all recipients, including CC (CC) and Bcc (secret send)

clearattachments--method
Derived from: phpmailer::clearattachments ()
File: class.phpmailer.php
Note: 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 Custom Head

clearreplytos--method
Derived from: Phpmailer::clearreplytos ()
File: class.phpmailer.php
Description: Clear Reply person

close--method
Derived from: Smtp::close ()
File: class.smtp.php
Description: Turn off an SMTP connection

connect--method
Derived from: Smtp::connect ()
File: class.smtp.php
Description: Establish an SMTP connection [/color]mailer.html

$ContentType--Properties
Originated from: Phpmailer:: $ContentType
File: class.phpmailer.php
Description: The type of document, default to "Text/plain"

D Start
$do _debug--Property
Originating from: SMTP:: $do _DEBUG
File: class.smtp.php
Description: SMTP Debug output

Data-method
Originating from: SMTP::D ata ()
File: class.smtp.php
Note: Send a data command and message information to the server (Sendsthemsg_datatotheserver)

E start

$Encoding--Properties
Originated from: Phpmailer:: $Encoding
File: class.phpmailer.php
Note: Set the message encoding mode, Optional: "8bit", "7bit", "binary", "base64", and "quoted-printable".

$ErrorInfo--Properties
Originated 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. Succeeds returns an array, otherwise returns False (Expandtakesthenameandaskstheservertolistallthepeoplewhoaremembersofthe_list_). Expandwillreturnbackandarrayoftheresultorfalseifanerroroccurs.)

F beginning:

$From--Properties
Originated from: Phpmailer:: $From file class.phpmailer.php
Description: Sender e-mail address
$FromName--Properties
Originated from: Phpmailer:: $FromName
File: class.phpmailer.php
Description: Sender's name

H begins:

$Helo--Properties
Originated from: Phpmailer:: $Helo
File: class.phpmailer.php
Description: Set Smtphelo, Default is $hostname (Setsthesmtpheloofthemessage (defaultis$hostname).)

$Host--Properties
Originated from: Phpmailer:: $Host
File: class.phpmailer.php
Description: Set up the SMTP server in the format: host name [port number], such as smtp1.example.com:25 and smtp2.example.com are all legal

$Hostname--Properties
Originated from: Phpmailer:: $Hostname
File: class.phpmailer.php
Description: Set up the hostname in Message-id and andreceivedheaders and be $helo used at the same time. If NULL, defaults to server_name or ' localhost.localdomain '

hello--method
Derived from: Smtp::hello ()
File: class.smtp.php
Description: Send HELO command to SMTP server

help--method
Derived from: Smtp::help ()
File: class.smtp.php
Description: If there are keywords, get the help information of the keyword

I begin:

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
Note: Set whether the letter is HTML format

ismail--method
Derived from: Phpmailer::ismail ()
File: class.phpmailer.php
Note: Set whether to use PHP mail function to send a piece

isqmail--method
Derived from: Phpmailer::isqmail ()
File: class.phpmailer.php
Note: Set whether to use Qmailmta to send pieces

issendmail--method
Derived from: Phpmailer::issendmail ()
File: class.phpmailer.php
Description: Whether to use the $sendmail program to send pieces

issmtp--method
Derived from: Phpmailer::issmtp ()
File: class.phpmailer.php
Description: Whether to use SMTP to send pieces

M begins:

$Mailer--Properties
Originated from: Phpmailer:: $Mailer
File: class.phpmailer.php
Description: Send by way, ("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, start the sender

N begins with:

noop--method
Derived from: Smtp::noop ()
File: class.smtp.php
Description: Sends a NOOP command to the SMTP server

P Begins:
$Password--Properties
Originated from: Phpmailer:: $Password
File: class.phpmailer.php
Description: Set the password for SMTP

$PluginDir--Properties
Originated from: Phpmailer:: $PluginDir
File: class.phpmailer.php
Description: Set the Phpmailer plug-in directory, only in Smtpclass not valid Phpmailer directory

$Port--Properties
Originated from: Phpmailer:: $Port
File: class.phpmailer.php
Description: Set the port number for SMTP

$Priority--Properties
Originated from: Phpmailer:: $Priority
File: class.phpmailer.php
Note: Set the message delivery priority level. 1= Emergency, 3 = normal, 5 = not urgent

phpmailer--objects
Originated from: Phpmailer
File: class.phpmailer.php
Description: Phpmailer-phpemailtransportclass

Q Start

quit--method
Derived from: Smtp::quit ()
File: class.smtp.php
Description: Send the QUIT command to the server, if no errors occur. Then close sock, or $close_on_error be true

R start

recipient--method
Derived from: Smtp::recipient ()
File: class.smtp.php
Note: Use to send the RCPT command to SMTP with the following parameters: $to

reset--method
Derived from: Smtp::reset ()
File: class.smtp.php
Note: Send the RSet command to cancel the transfer in processing. Returns true if successful, or false

S start:

$Sender--Properties
Originated from: Phpmailer:: $Sender
File: class.phpmailer.php
Description: Setsthesenderemail (Return-path) ofthemessage. Ifnotempty,willbesentvia-ftosendmailoras ' Mailfrom ' Insmtpmode.

$Sendmail--Properties
Originated from: Phpmailer:: $Sendmail
File: class.phpmailer.php
Description: Set the directory of the sender

$SMTPAuth--Properties
Originated from: Phpmailer:: $SMTPAuth
File: class.phpmailer.php
Description: Set SMTP to require authentication, use username and password variables

$SMTPDebug--Properties
Originated from: Phpmailer:: $SMTPDebug
File: class.phpmailer.php
Description: Set SMTP to debug output?

$SMTPKeepAlive--Properties
Originated 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--Property
Originating from: SMTP:: $SMTP _port
File: class.smtp.php
Description: Set SMTP port

$Subject--Properties
Originated 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 mail address

send--method
Derived from: Phpmailer::send ()
File: class.phpmailer.php
Description: Create a message and make a send 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 mail address

sendormail--method
Derived from: Smtp::sendormail ()
File: class.smtp.php
Note: Start a message transfer from the specified 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: Initializes an object so that the data is in a known state

smtp--objects
Originating From: SMTP
File: class.smtp.php
Description: SMTP Object

smtpclose--method
Derived from: Phpmailer::smtpclose ()
File: class.phpmailer.php
Note: If there is active SMTP, close it.

T start

$Timeout--Properties
Originated from: Phpmailer:: $Timeout
File: class.phpmailer.php
Description: Sets the SMTP server timeout (in seconds). Note: Under Win32, this property is invalid

turn--method
Derived from: Smtp::turn ()
File: class.smtp.php
Description: This is an optional SMTP parameter, currently Phpmailer does not support him, may support future

U opening

$Username--Properties
Originated from: Phpmailer:: $Username
File: class.phpmailer.php
Description: Set SMTP user name

V Opening

$Version--Properties
Originated from: Phpmailer:: $Version
File: class.phpmailer.php
Description: Returns the version of Phpmailer

verify--method
Derived from: smtp::verify ()
File: class.smtp.php
Description: Check that the user name is validated through the server

W Start:

$WordWrap--Properties
Originated from: Phpmailer:: $WordWrap
File: class.phpmailer.php
Note: Set the maximum number of characters per line, more than the number of changes automatically line
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.

Tags Index: