我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP发送附件和HTML模板的邮件

my question is simple...

I have coded the send HTML mail, and plains with attachment but what about HTML with attachments? my header has to be content-type:multipart/mixed; and that doesn't work for HTML messages.

Thanks!

Use something like PHPMailer or SwiftMailer. it's trivial to send out dual html + plaintext emails with attachments and embedded images with either of them, and they're both free and easy to install/use.

近期文章

  • 如何正确调用get_post_meta
  • mysql查询:将信息加载到CMS中的表单字段中
  • 为什么我的电子邮件验证不起作用? PHP
  • 使用PHP从数据库中提取值并将结果作为变量传递给JavaScript
  • 链接到Zend Framework中的文件
  • 来自ROW数据的MySQL最高/最低5
  • 从wordpress上的菜单顶部删除一个href
  • 如何列出数据库中的重复条目
  • 如何向IMAP电子邮件帐户添加电子邮件过滤器?
  • 上传时,我在哪里设置php.ini参数?
  • Drupal:如何创建包含条件的字符串'如果包含?
  • 将旧网站导入到新网址,在重定向上循环播放的网页
  • 使用AJAX和Jquery的PHP行为真的很奇怪
  • 关于php评论框
  • 如何在IE8中的jQuery ajax加载内容中启动javascript
  • 从对象中获取纯值
  • SQL插入错误SQL语法... date()
  • Php阵列:发现差异!
  • 如何从PHP中删除Maildir中的电子邮件?
  • 为了生成序列,我如何与PayPal IPN进行适当的交互?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华