Due to some security features, Gmail doesn’t let you attach a few file formats. This is just to protect your computer and account. However, if you are sure that the file that you are sending or receiving is safe, you can upload it to Google Drive and share the Google Drive links.