在php中将动态生成的word文档作为电子邮件附件发送 [英] send dynamically generated word document as email attachment in php

查看:113
本文介绍了在php中将动态生成的word文档作为电子邮件附件发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 header(  Content-type:application / vnd.ms-word ); 
header( Content-Disposition:attachment; Filename = report.doc);





我使用上面的标题动态生成word文件...当我们打开该链接时可以下载。是否可以发送附有这个文件的邮件??请指导我这个...

提前感谢

解决方案

我得到了解决方案。

谢谢你

header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=report.doc");



I am dynamically generating the word file using headers above ...which can be downloaded when we open that link.Is it possible to send mail with attachment of this word file?? please guide me about this...
thanks in advance

解决方案

I got the solution.
Thank you.


这篇关于在php中将动态生成的word文档作为电子邮件附件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆