Email attachments not opening properly

Hi! Why do I have this problem that my files do not open properly when I download them from the internet through an email? I have the required software to open a specific file and it should open properly. But every time it shows an error. Is this some kind of security check or is there a problem with my computer/software?
