zoukankan      html  css  js  c++  java
  • phpmailer的属性和方法(phpmailer参考)

    A开头:

            $AltBody --属性

             出自:PHPMailer::$AltBody ,文件:class.phpmailer.php

             说明:该属性的设置是在邮件正文不支持HTML的备用显示

            AddAddress --方法

             出自:PHPMailer::AddAddress(),文件:class.phpmailer.php

             说明:增加收件人。参数1为收件人邮箱,参数2为收件人称呼。例AddAddress("mailto:xiaoxiaoxiaoyu@xiaoxiaoyu.cn%22,%22xiaoxiaoyu"),但参数2可选,AddAddress(xiaoxiaoxiaoyu@xiaoxiaoyu.cn)也是可以的。函数原型:

             public function AddAddress($address, $name = '') {}

            AddAttachment--方法

             出自:PHPMailer::AddAttachment(),文件:class.phpmailer.php

             说明:增加附件。参数:路径,名称,编码,类型。其中,路径为必选,其他为可选

             函数原型:

             AddAttachment($path, $name = '', $encoding = 'base64', $type = 'application/octet-stream'){}

            AddBCC --方法

              出自:PHPMailer::AddBCC(),文件:class.phpmailer.php

             说明:增加一个密送。抄送和密送的区别请看[SMTP发件中的密送和抄送的区别] 。参数1为地址,参数2为名称。注意此方法只支持在win32下使用SMTP,不支持mail函数

             函数原型:

             public function AddBCC($address, $name = ''){}

            AddCC --方法

             出自:PHPMailer::AddCC(),文件:class.phpmailer.php

             说明:增加一个抄送。抄送和密送的区别请看[SMTP发件中的密送和抄送的区别] 。参数1为地址,参数2为名称注意此方法只支持在win32下使用SMTP,不支持mail函数

             函数原型:

             public function AddCC($address, $name = '') {}

            AddCustomHeader --方法

              出自:PHPMailer::AddCustomHeader(),文件:class.phpmailer.php

             说明:增加一个自定义的E-mail头部。参数为头部信息

             函数原型:

             public function AddCustomHeader($custom_header){}

            AddEmbeddedImage --方法

             出自:PHPMailer::AddEmbeddedImage(),文件:class.phpmailer.php

             说明:增加一个嵌入式图片。参数:路径,返回句柄[,名称,编码,类型]

             函数原型:

              public function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {}

             提示: AddEmbeddedImage(PICTURE_PATH. "index_01.jpg ", "img_01 ", "index_01.jpg ");
             在html中引用<img src= "cid:img_01 ">

            AddReplyTo --方法

             出自:PHPMailer:: AddReplyTo(),文件:class.phpmailer.php

             说明:增加回复标签,如"Reply-to"。参数1地址,参数2名称

             函数原型:

              public function AddReplyTo($address, $name = '') {}

            AddStringAttachment -方法

              出自:PHPMailer:: AddStringAttachment(),文件:class.phpmailer.php

             说明;增加一个字符串或二进制附件(Adds a string or binary attachment (non-filesystem) to the list.?)参数:字符串,文件名[,编码,类型]

             函数原型:

             public function AddStringAttachment($string, $filename, $encoding = 'base64', $type = 'application/octet-stream') {}

            Authenticate --方法

             出自:SMTP::Authenticate(),文件:class.smtp.php

             说明:开始SMTP认证,必须在Hello()之后调用,如果认证成功,返回true,参数1用户名,参数2密码

             函数原型:

             public function Authenticate($username, $password) {}

    B开头

            $Body --属性

             出自:PHPMailer::$Body 文件: class.phpmailer.php

             说明:邮件内容,HTML或Text格式

    C开头

            $CharSet --属性

             出自:PHPMailer::$CharSet 文件:class.phpmailer.php

             说明:邮件编码,默认为iso-8859-1

            $ConfirmReadingTo --属性

             出自:PHPMailer::$ConfirmReadingTo 文件class.phpmailer.php

             说明:回执?

            $ContentType --属性

             出自:PHPMailer::$ContentType 文件: class.phpmailer.php

             说明:文档的类型,默认为"text/plain"

            $CRLF --属性

             出自:PHPMailer::$ContentType 文件:class.phpmailer.php

             说明:SMTP回复结束的分隔符(SMTP reply line ending?)

            class.phpmailer.php --对象

             出自:class.phpmailer.php 文件: class.phpmailer.php

             说明:phpmailer对象

            class.smtp.php --对象

             出自:class.smtp.php 文件: class.smtp.php

             说明:SMTP功能的对象

            ClearAddresses --方法

             出自:PHPMailer::ClearAddresses() 文件: class.phpmailer.php

             说明:清除收件人,为下一次发件做准备。返回类型是void

            ClearAllRecipients --方法

             出自:PHPMailer::ClearAllRecipients() 文件: class.phpmailer.php

             说明:清除所有收件人,包括CC(抄送)和BCC(密送)

            ClearAttachments --方法

             出自:PHPMailer::ClearAttachments() 文件: class.phpmailer.php

             说明:清楚附件

            ClearBCCs --方法

             出自:PHPMailer::ClearBCCs() 文件 class.phpmailer.php

             说明:清楚BCC (密送)

            ClearCustomHeaders --方法

             出自:PHPMailer::ClearCustomHeaders() 文件: class.phpmailer.php

             说明:清楚自定义头部

            ClearReplyTos --方法

             出自:PHPMailer::ClearReplyTos() 文件: class.phpmailer.php

             说明:清楚回复人

            Close --方法

             出自:SMTP::Close() 文件: class.smtp.php

             说明:关闭一个SMTP连接

            Connect --方法

             出自:SMTP::Connect() 文件: class.smtp.php

             说明:建立一个SMTP连接

    摘自:http://www.xiaoxiaoyu.cn/AMP/215.html

  • 相关阅读:
    笔记——文档在线阅读的解决方案(未完待续)
    杂记之web篇
    对针对接口编程的理解
    汇编笔记之 ret 、retf和call
    electron桌面应用
    wepack打包时出错不压缩代码及使用es7(async await)新语法问题
    npm install 时发生错误
    create-react-app 后使用babel/polyfill
    webpack3.x--react,jsx多页配置
    webpack--打包scss
  • 原文地址:https://www.cnblogs.com/Athrun/p/1799789.html
Copyright © 2011-2022 走看看