我正在使用 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>