OK, I’ve read all the previous postings and was frustrated as everyone else not being able to open any attachments from the stock email application. I will have to disagree that it is an Outlook/Exchange problem. I don’t think so and here is why.
I’ve had my Samsung Galaxy S5 for almost 2 years now and NEVER had an issue opening any sort of attachments from the stock email app on my phone UNTIL I decided to update my android version from the original 4.4.2 Kitkat to the latest Lollipop. I was being lazy and following the rule, if it ain’t broken, don’t fix it. I had to do successive updates since the newest was now 5.1.1 Lollipop with 5.0 in the middle. So I made a backup of my data, and then performed 2 successive system upgrades.
My email app was always configured as Exchange Active sync and attachments opened perfectly well. It wasn’t until I decided to update my android that it got broken. I got the same symptoms as everyone else. I got the email list on my inbox, I could see the paper clips showing the attachments, I could open the messages and it would say the file name and whatever size it was, I could tap on it and “download” it and I would see it “download” all the way to 100% but when trying to open it or checking for the file at the download location I would only find a name with 0 bytes in size. This happened regardless of file extension. It happened with pdf, it happened with jpg, it happened with ANY type of file. Simply they were not being saved properly.
I suspected a permissions issue, but that would make no sense. If there are permission issues writing to that folder, the application cannot write anything there, so we wouldn’t have any files whatsoever, and we are indeed getting files written there, but they are empty. So this problem is a communication issue between the email app and the exchange servers. The email app cannot download the attachments properly. It goes as far as getting ready to save the file and creates the name for it, but it cannot retrieve the actual contents. In my opinion, this is a 200% problem of the stock email app and NOT Exchange.
Just to prove it, I downloaded and installed Blue Mail, configured it as an exchange account and I was able to download all my emails, save every attachment and preview them normally, inside and outside of the email app, without any tinkering of any sort, so that makes it obvious that the Exchange servers are working properly. If the problem was on the Outlook/Exchange side, then we would have the SAME issue with multiple email clients, and it is not the case.
I must point out to all those who have had difficulty opening the attachments and have downloaded different types of apps to handle the files, all that is useless when the problem is not with who opens the file but the files themselves. No application will ever open a 0 byte size file because it’s empty, corrupted, not good. It cannot interpret the data properly because there is nothing to interpret.
So, I used the IMAP settings recommended by peter1986 and it worked perfectly fine. I could open everything normally. This is a workaround to get by while they fix the original problem, though. There is no reason why the accounts configured using Exchange Activesync shouldn’t work.
We must also consider that in a client-server relationship, it is always the server the one that dictates HOW the client must connect and what parameters to use. It is the client that has to conform to server settings and specifications, not the other way round. So, if one particular client cannot connect to the server for whatever reason while other clients can, the problem to fix is on the client side. The fact that other email clients could connect to the Exchange server and work normally, but not the stock email app points to the email app as the culprit.
So, if any Samsung engineers are reading this forum, there is an issue with stock email app NOT retrieving email attachments properly from accounts connected via Exchange servers. The new Lollipop update broke something there and it needs to be fixed.