I have created a mail script with attachment using http://articles.sitepoint.com/article/advanced-email-php/5 as the basis of my code.
The code sends an email with a blank attachment. The filename and type are both correct. However, the file size is wrong and the content is blank. This includes images and documents of all types.
I tried it on an offsite server and It works perfectly. I didn't change ANY code when I tested offsite. I left everything as is on both servers.
The headers are night and day. Seems like the server is stripping the header. Any ideas?
Thanks for your help.