0

I am creating a Word document dynamically using PHP, and I need to send it as an attachment.

Is there a way to do this that will save it to the server temporarily in order to email it? Is there a better way?

<?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>
Community
  • 1
  • 1
vux
  • 3
  • 2

1 Answers1

0

You should have a look on programmershelp and on Stackoverflow: Create Word Document using PHP in Linux and also there.

Community
  • 1
  • 1
JMax
  • 26,109
  • 12
  • 69
  • 88