Sunday, July 24, 2011

Send an attachment with blocked file types in Gmail

As a security measure to prevent potential viruses, Gmail doesn't allow you to send or receive files with following extensions :

"ade", "adp", "bat", "chm", "cmd", "com", "cpl", "exe",
"hta", "ins", "isp", "jse", "lib", "mde", "msc", "msp",
"mst", "pif", "scr", "sct", "shb", "sys", "vb", "vbe",
"vbs", "vxd", "wsc", "wsf", "wsh"

If you try to attach a file with these extensions, it will give you an error like this "This is an executable file. For security reasons, Gmail does not allow you to send this type of file."

Worse, Gmail won't accept these types of files even if they are sent in a zipped (.zip, .tar, .tgz, .taz, .z, .gz, .rar) format. If this type of message is sent to your Gmail address, it is bounced back to the sender automatically.

Now here is the trick through which you can send or attach any type of file in Gmail :

1. Open My computer or explorer window. Below the address bar, look for "Organize". Click on it and select "Folder and Search Options" (Windows XP users : My Computer > Tools > Folder Options ). A window will pop up.

2. In the window click on the "view" tab. Now find "Hide extensions for known file types" and uncheck it. Click "OK".

3. Select the desired file which you want to send and change its extension (e.g : .exe) with other some extension which Gmail allows (like .txt). Ignore the warning.

4.Send the file to the recipient, and ask him/her to get it renamed again to the original file extension (e.g : exe)


  1. cool...
    actually i dont know this & it will really works..
    thnks to ur blog..

  2. Sharing the link after uploading to online storages (Google Drive, OndeDrive etc.) works too :)

  3. open gmail on mobile app and save file on google drive work perfectly for me....

  4. Replies
    1. Dear Bharat,

      Kindly Change The File Extension.
      For Example InputToolsSetup.exe Change The InputToolsSetup.exe img
      Then Successfully upload Your File

      Any Help Contact Me On Only Mail

      E-MAIL ID :

      Sachin S. Jadhav.

    2. instead doing all this, upload your file on google drive and share the link

  5. Apply the Label - this is also another essential part of the filtering process. This is where you automatically assign a Label to an email and, if you've selected Skip the Inbox, your email will be assigned directly to this Label. From here you can also create a new Label.

  6. care full it could be some malware attached to your file , i ran my file with malwarebytes and found 2 threats removed them and the email sent with no problems , just a heads up u can get malwarebytes for free at

  7. I try this way but it did not work when i change the name of file

  8. This comment has been removed by the author.

  9. Thanks for providing this information, and best solution one can perform to get rid of large size issue in sending various pics quickly and immediately.I don't know about this before.I have experienced so many things with Gmail, including positive or negative. when I created my Gmail account, my problem with me was, recovery in changing the password , then I search for the same and taken help from

  10. instead doing all this, upload your file on google drive and share the link

  11. actually, you could just remove the file extension and attach it


Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.