From next month if your need to send a .js file then you will have to send it using Google Drive or Google Cloud storage.
Gmail currently restricts certain file attachments (e.g. .exe, .msc, and .bat) for security reasons, and starting on February 13, 2017, we will not allow .js file attachments as well. Similar to other restricted file attachments, you will not be able to attach a .js file and an in-product warning will appear, explaining the reason why.
If you still need to send .js files for legitimate reasons, you can use Google Drive, Google Cloud Storage, or other storage solutions to share or send your files.
Google are making the changes to improve security and ensure that .js files are not used maliciously.
Source GoogleFiled Under: Top News