Phpmailer Chinese Use instructions summary _php tips

Source: Internet
Author: User
Tags base64 function prototype reset win32
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 ("to@163.com", "to name"), but parameter 2 is optional, addaddress (to@163.com) is also possible.
Function prototype: Public function addaddress ($address, $name = ' ") {}

AddAttachment--method
Originated 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
Originated 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
Originated 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
Originated 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
Originated 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

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
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
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
Originated from: Phpmailer:: Clearaddresses ()
File: Class.phpmailer. php
Description: Clear the recipient to prepare for the next shipment. return type is void

Clearallrecipients--method
Originated from: Phpmailer:: Clearallrecipients ()
File: Class.phpmailer. php
Description: Clears all recipients, including CC (CC) and Bcc (secret send)

Clearattachments--method
Originated from: Phpmailer:: Clearattachments ()
File: Class.phpmailer. php
Note: Clear attachment

Clearbccs--method
From: Phpmailer:: Clearbccs () file Class.phpmailer. php
Description: Clear Bcc (Secret send)

Clearcustomheaders--method
Originated from: Phpmailer:: Clearcustomheaders ()
File: Class.phpmailer. php
Description: Clear Custom Head

Clearreplytos--method
Originated 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 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--Properties
Originating from: SMTP: $do _DEBUG
File: class.smtp.php
Description: SMTP Debug output

Data-Method
Originating from: SMTP: $Data ()
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
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
Originated from: Phpmailer:: IsError ()
File: Class.phpmailer. php
Description: Returns whether an error occurred

IsHTML--method
Originated from: Phpmailer:: ishtml ()
File: Class.phpmailer. php
Note: Set whether the letter is HTML format

IsMail--method
Originated from: Phpmailer:: IsMail ()
File: Class.phpmailer. php
Note: Set whether to use PHP mail function to send a piece

Isqmail--method
Originated from: Phpmailer:: Isqmail ()
File: Class.phpmailer. php
Note: Set whether to use Qmailmta to send pieces

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

issmtp--method
Originated 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--Properties
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
Originated 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
Originated 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--Object
Originating From: SMTP
File: class.smtp.php
Description: SMTP Object

Smtpclose--method
Originated 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

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.