I've got a attachment problem. I seem to get the attachment fine but say for instance it is a word document. Once I send it word can no longer open it. I thought it was corrupt but is identical to the original file I sent. So I tried to duplicate the problem. I opened the original in a text editor, did nothing and saved it. Now word can't open it either. It seems word,excel,etc doesn't like how the file is being handled by php.
I am simply opening it reading it doing the whole base64_code chunk_split method. In fact, I tried someone elses script as well and had the same problem. Any thought on that?
-Josh