Skip to main content

How to Send Executable (.exe, .ocx, .dll, .com, .bat) Files in Gmail Without Changing the File Extension?

Why Gmail doesn't like exe files?

If you use gmail as your email service probably you should be getting frustrated with it when you want to send files with the extensions exe, ocx, dll, com or bat. These executable stands for some files which can be executed independently within a typical operating system and there is a huge probability to contain computer viruses or malware in these types of files. Since these kind of files can be executed independently any virus that the file carried will infect our computers very easily.

Although this is not a problem in other free email services like yahoo, as Google has grabbed a big part from the services which we use for our day to day cyber needs, we can't move in to another service just because of this problem.

What happen when we are trying to upload an executable file in Gmail?

When we attach an executable file first it upload the whole file and check on several criteria such as file extension (whether it contains .exe, .dll etc) and whether it contains a virus or any suspicious threat. This is how Gmail complains about a file with the extensions exe, ocx, dll, com or bat.

If we are going to attach a big executable file you will face the following frustrated situations.

  1. You have to wait until it finish the uploading the whole file in order to know whether it can or cannot be sent.
  2. If it complains that the file cannot be sent then you can't send it as it is.

Known Solutions

One way is you can send these executable files by changing their extension (i.e. .exe .bat ...) to another safe file type such as .jpg .gif etc. But the problem is even in this way sometimes gmail complains about possible threats because of heuristics detection from the inner structure of the file. Other disadvantage is the sender should mention the correct extension in order to fix the file in to original extension. According to my experience it is a tedious task to explain how to change a file extension in every cases like, as default configuration an operating system hide file extension and need to change the configuration first in order to change file extension.

Another way is compressing the file using a ZIP software like 7zip winzip or WinRAR. But for some cases gmail is smart enough to reveal the internal file structure and detect whether there is any file with a prohibited type.

Best Solution

What I prefer to do in this case is some what similar to the above last method, but with a little bit difference. Here is the steps of the way to send an executable file with the extension exe bat ocx dll or what ever prohibited by gmail including a file with any virus. 

  1. Download and install one of the following: WinRar / 7zip / Winzip
  2. Right click on the file or the folder that is to be sent via gmail and click "Add to archive" (a menu item which was added by one of the above software)
  3. Set a password for the archive (the Zip tool you downloaded will give you the facility to encrypt the files using a password)
  4. Send the password protected archived file with the password written in the message body of the email.
Gmail will never be able to check what's inside a password protected archive and end up with it allows us to send what ever hidden in a password protected archive with the extention .zip, .rar etc and with  giving the responsibility of the file content to ourselves.

I hope now onward Gmail will not bother us about any attached executable files. I invite you to share if you have a better solution regarding this. 


  1. Its really awesome, I tried so many ways, but nothing works, But its really superb and it works.

  2. now it blocks password protected files too

  3. not able to send with the protected rar bro
    say any other way

  4. It might be because of absent dll file like mss32 dll, it is often mistake which can occur at everyone, so you might need next tool to resolve it:


Post a Comment

Popular posts from this blog

Sri Lanka Maps in Garmin GPS

Recently I received a Garmin GPS (nuvi 50) from my brother who is studying in China. The GPS looks fine but there are no Sri Lanka base maps installed in it. Then I tried to find a Sri Lanka road map that supports to the device. As I went through the articles I got to know that the format of the maps used in Garmin devices is a proprietary one. The map blocks are archived in to a single file which has the extension ".img" but not similar to DVD or floppy image file.

I found there are three methods to get Sri Lanka map to Garmin devices.

Download from the Garmin map resourcesDownload Sri Lanka maps from UMP (Unofficial Map Project)Download and convert maps from OpenStreetMap  (PS: I found this link of OpenStreetMap which seems to support routable maps and very easy to download maps of any country including Sri Lanka.
The first method is bit expensive and I don't think that it is worth to buy map from Garmin because they don't give enoug…

What minHessian, Octaves and Layers mean in SURF (Speeded-up Robust Feature)? QA

My previous article in this blog is about a discussion on measuring image similarities with BOF in a large database. It is an extracted part from a forum of an article posted in CodeProject "Bag-of-Features Descriptor on SIFT Features with OpenCV (BoF-SIFT)". This article is also an extracted part from the commenting section of the same article in the code project. As I described in my previous article, many people who used visual features do not have a proper understanding over the feature extraction and description algorithms because of these algorithms contain a lot of mathematical procedures which are difficult to understand with an average mathematical knowledge. The question which is about to discuss in this article has proved the above said fact and also the fact may cause the users to limit the usage of such features in their studies and applications.
Lets begin the discussion.

Q. I just wanted to ask why the minHessian value is 400, the number of octaves is 4, and th…