http://www.bblog.com/apidoc/elementindex_PH"/>
PHP头条
热点:

phpmailer所有对象和属性 中文


前言:
  phpmailer是一个优秀的发件程序,但中文资料比较少,于是我手动翻译了phpmailer的elementindex.html,E文的:PHPMailer.html">http://www.bblog.com/apidoc/elementindex_PHPMailer.html,因为水平有限,翻译的地方可能不是很准,希望大家多多指教。因为东西较多,所以分三个帖子


A-C

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

A开头:
      $AltBody--属性
        出自:PHPMailer::$AltBody ,文件:class.phpmailer.php
        说明:该属性的设置是在邮件正文不支持HTML的备用显示
      AddAddress--方法
        出自:PHPMailer::AddAddress(),文件:class.phpmailer.php
        说明:增加收件人。参数1为收件人邮箱,参数2为收件人称呼。例AddAddress("xiaoxiaoxiaoyu@xiaoxiaoyu.cn","xiaoxiaoyu"),但参数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--方法
    &

www.phpzy.comtrue/phprm/30136.htmlTechArticlephpmailer所有对象和属性 中文 前言: phpmailer是一个优秀的发件程序,但中文资料比较少,于是我手动翻译了phpmailer的elementindex.html,E文的:PHPMailer.html">http://www.bblog.com/apidoc/elementindex_PH...

相关文章

    暂无相关文章

PHP之友评论

今天推荐