PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
In the bottom you see a code that includes the HTML from the file that it read at the top. The variable that keeps the info is $content. Content have to be included with the mail. Why want the $content come with the mail? I tried to remove the header in the bottom and replace it with
After the mail was sent it then printet $content and the info came up in the browser. But the mail that was sent didnt have the info from $content in it at all.
hmmmm, works for me.
Have you checked the error log? maybe something (I really don't know what ) worked wrong. And maybe the content is in the mail but the client refuses to show. If possible save the real mail-data from the client and check it with a text-editor
Since it has worked before it may have something to do with the server that recieves it. I don't know. Tried to download the mail and open it in an editor. Still nothing. What kind of mail did you use?
Thought about sending the file as an attachment instead of reading thru the file an print it in the mail. But have do I send a file as an attachment?
After finding out the hard way that this ain't compatibel with all mail clients I'm wondering if anyone know how to send a file as an attachement with PHP. Think this will be better than to read thru the file first for then to print it in the mail. Anyone?