php的附件邮件类

时间:2023-07-14 03:34:18
【文件属性】:

文件名称:php的附件邮件类

文件大小:2KB

文件格式:ZIP

更新时间:2023-07-14 03:34:18

经典类库

简介:subject = $subject;          $this->addr_to = $to;          $this->smtp_headers = $this->write_smtpheaders($from);      $this->text_body = $this->write_body($msg);      $this->text_encoded = $this->attach_file($filename,$downfilename,$mimetype,$mime_filename);      $this->mime_headers = $this->write_mimeheaders($filename, $mime_filename);    }        function attach_file($filename,$downfilename,$mimetype,$mime_filename) {      $encoded = $this->encode_file($filename);      if ($mime_filename) $filename = $mime_filename;      $out = "--" . $this->mime_boundary . " ";      $out = $out . "Content-type: " . $mimetype . "; name="$filename"; ";      $out = $out . "Content-Transfer-Encoding: base64 ";      $out = $out . "Content-disposition: attachment; filename=这是一个php的附件邮件类,需要的朋友可以下载使用


【文件预览】:
php的附件邮件类
----php中文网下载站.url(114B)
----CMailFile.php(3KB)

网友评论