Recently, Google has made an announcement that .js files are not allowed to be sent as the attachment of Gmail from February 13.
Due to the concern of security of Gmail, Google has decided to block .js file type on the email as it contains a potential security issue. So, from February 13, people will not be able to send this type of file from their Gmail.
“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…,” said the company in the blog post.
In the consideration of the potential security issue of the Gmail, Google has blocked many kinds of file type in the attachment of Gmail, they are:
.ADE, .ADP, .BAT, .CHM, .CMD, .COM, .CPL, .EXE, .HTA, .INS, .ISP, .JAR, .JS (NEW), .JSE, .LIB, .LNK, .MDE, .MSC, .MSI, .MSP, .MST, .NSH .PIF, .SCR, .SCT, .SHB, .SYS, .VB, .VBE, .VBS, .VXD, .WSC, .WSF, .WSH
If you want to send a file with one of these file types, you may need to use other e-mail rather than the Gmail.