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?
I tired PHPmailer and had issues with it. I tried following the tutorials supplied but I didn’t have all the files they showed in the tutorial. I even downloaded the files directly from the phpmailer site. I also tried Swiftmailer but there was an issue with the server when I tried to run parts of the code.
I’m trying to figure out why our server is stripping the header and only allowing name and file type through.