As everyone said, only open attachments from trusted people if at all, but don't blindly open it. Your email program should give you the option to save the attachment rather than opening it. Save it and scan it with antivirus software at least before opening it. Also, make sure you set Windows to show file extensions. If you don't then even .txt extensions are dangerous because it could be hiding a .txt.scr extension.