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!
The above code is the raw string I am tring to use, and I can get images to work and pdf docs, but anytime I try word docs such as here, the attachment shows in the email but when you open it it is blank, any suggestions?
Can you show us the rest of the code where $name etc comes from? Technically one file format is the same as any other so there shouldn;t be a difference if one works.
Hopefully not to sound patronising but I assume you've opened the same word document on the server and found it be ok?