php的附件邮件类
<? class CMailFile { var $subject; var $addr_to; var $text_body; var $text_encoded; var $mime_headers; var $mime_boundary = "--==================_846811060==_"; var $smtp_headers; function CMailFile($subject,$to,$from,$msg,$filename,$downfilename,$mimetype = "application/octet-stream",$mime_filename = false) { $this->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 . "\n"; $out = $out . "Content-type: " . $mimetype . "; name=\"$filename\";\n"; $out = $out . "Content-Transfer-Encoding: base64\n"; $out = $out . "Content-disposition: attachment; filename=
这是一个php的附件邮件类,需要的朋友可以下载使用
免责声明
本站所有资源均由网友贡献或各大下载网站转载。请自行检查软件的完整性!本站所有资源仅供学习参考。请不要将它们用于商业目的。否则,一切后果由您负责!如有侵权,请联系我们删除。联系方式:admin@php.cn
相关文章

24 Nov 2017
相信很多同学都用过thinkphp,而thinkphp这个框架本身也有类库,这篇文章我们来讲讲thinkphp怎么使用外部PHPMailer类库。

26 Dec 2024
Apple 今天发布了 iOS 18.2,它通过新的类别功能对邮件应用程序进行了重大更改。类别会自动将您的电子邮件分为四个不同的部分:主要、交易、更新和促销。然而,虽然

31 Dec 2024
使用 Node.js 进行垃圾邮件分类 该项目使用 Node.js 和 Natural 库创建一个基于 AI 的应用程序,用于将电子邮件分类为垃圾邮件或非垃圾邮件。该应用程序使用朴素贝叶斯分类器进行垃圾邮件检测,这是一个通信


Hot Tools

热门文章
王朝战士起源控制器不工作:简单修复
23 Jan 2025
故障排查
如何修复KB5050094无法在Windows 11中安装?
30 Jan 2025
故障排查
如何解决真三国无双:起源在 Windows 中一直冻结的问题?
24 Jan 2025
故障排查
KB5050188 安装失败:无与伦比的方法就在这里
23 Jan 2025
故障排查
Windows 11 KB5049624 中有哪些新增功能以及如何安装?
23 Jan 2025
故障排查