All phpmailer objects and attributes in Chinese

Source: Internet
Author: User

Preface:
Phpmaileris an excellent sending program, but there are few Chinese data, so I manually translated phpmailer's elementindex.html, E: PHPMailer.html "> example. There are many things, so there are three posts


A-C

From:
Http://www.xiaoxiaoyu.cn/AMP/215.html

Start with:
$ AltBody -- attribute
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 (xiaoxiaoxiaoyu@xiaoxiaoyu.cn) 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/octet-stream ){}
AddBCC -- Method
From: PHPMailer: AddBCC (), file: class. phpmailer. php
Note: Add a BCC. For the differences between CC and BCC, see [differences between BCC and CC in SMTP sending]. 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 [differences between BCC and CC in SMTP sending]. 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/octet-stream ){}
Tip: AddEmbeddedImage (PICTURE_PATH. "index_01.jpg", "img_01", "index_01.jpg ");
Reference
AddReplyTo -- Method
From: PHPMailer: AddReplyTo (), file: class. phpmailer. php
Note: Add a Reply tag, such as "Reply-". 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 (non-filesystem) to the list .?) Parameter: String, file name [, encoding, type]
Function prototype:
Public function AddStringAttachment ($ string, $ filename, $ encoding = base64, $ type = application/octet-stream ){}
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 -- attribute
From: PHPMailer ::$ Body file: class. phpmailer. php
Description: email content, in HTML or Text format
C
$ CharSet -- attribute
From: PHPMailer ::$ CharSet file: class. phpmailer. php
English version (Mail encoding, the default is iso-8859-1)
$ 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 -- attribute
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
&

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.