0

我正在使用 PHP 动态创建 Word 文档,我需要将其作为附件发送。

有没有办法将其临时保存到服务器以便通过电子邮件发送?有没有更好的办法?

<?php
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=giftboxnote.doc");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
...other stuf...
</html>
4

1 回答 1

0

你应该看看程序员帮助和 Stackoverflow:在 Linux那里使用 PHP 创建 Word 文档。

于 2011-08-18T09:58:46.577 回答