How To Send An Executable File Via Gmail
Up until today I have never tried to send an executable file via Google's email service. When I tried that today, it looked at first as if it was not a problem. The file was uploading fine and showing up under attachments in the send message window.
When I tried to send the email however, I received an error message. It stated: Error. File.exe is an executable file. For security reasons, Google Mail does not allow you to send this type of file.
A click on OK displayed the compose message screen again, with the file still being attached to the email.
What I needed was a workaround. Sure, I could for instance upload the executable file to a file hosting website like Mediafire, and copy and paste the share file url in the email instead. That's a possibility and not a bad one.
Then again, I prefer a more straightforward approach. I first tried zipping the file to see if that was enough to bypass the file filter on Gmail. It was not. The very same message was displayed and the email failed to send.
Next thing I tried was to zip the executable file and apply a password to the file to see if that would bypass the executable file filter which it did not as well. Both options did not yield the desired result. Gmail was still blocking the email from being send. I did some experiments with different encryption formats, and found out that 7-zip files that contain executable files can be send, while more common extensions like zip or gz are blocked.
Lastly I decided to change the file extension of the executable, from exe to txt. And lo and behold, the email went through the filters. Changing the file extension of the attachment can be problematic in itself, especially so if you are not the recipient of the email. You need to provide instructions, preferably in the message, that the file extension needs to be changed before the file can be run on the target computer.
So, if you want to send an executable as an attachment from your Gmail account, you either need to rename the file extension to bypass the filter, upload the file elsewhere and link to it in the mail body, or use a compression format like 7z. The latter being the most comfortable option if the recipient uses a tool that supports the unpacking of those files.
Is there an option that I have overlooked? Let me know in the comments.
Advertisement
Just use .tar.lzma (I think, Google just don’t add this archive format to gmail scanning list, so the don’t scan it). 7Zip can open this format on Windows. File-roller or some another programs also can open this format on Linux.
What I have done is create an excel macro that saves each byte of the exe file binary data as cell values in a spreadsheet. The excel file also includes a macro to extract the binary data from the cells and rewrite the executable on the target computer. When the recipient runs the excel sheet they enable macros and the extraction macro automatically extracts the executable binary data and rebuilds the original executable on the target desktop. Macro enabled Excel sheets seem to get through all email filters I have tried so far and from the user point of view it is simply just another installation program requiring no knowledge other than enabling excel macros which they are prompted for by excel if not already enabled – so no renaming or unzipping etc.
send me all the tricks in gmail..
This is such a bummer. I like to email myself project files at the end of projects using gmail as sort of a backup server that I can access anywhere – a client’s office for example.
Now I can’t send my .Net files there. Doesn’t allow .vb files!! How dumb is that. vb files are plain text, have to be compiled.
You can also use Forgetbox For send your exe file or whatever !
It’s totally free and it works with unlimmited size ;)
http://www.forgetbox.com
Just use an obvious double extension like “file.exe.removethispart”
plese send background gmail account setting
awesome article. Sometimes I really find necessary to send exe files in emails
As someone has already noted, the problem with using .zip or .gz is that these archives do not encrypt the filenames, so gmail can see the .exe inside.
Everyone I know with any sense just renames the extension. It’s not that complicated and only takes a few seconds. No need to post your files to some 3rd party site.
You’d be surprised, however, how many of the recipients of such emails would still (even though it’s dead-simple) have a difficult time doing that. There are still a lot of computer illiterates out there who are lucky to even know how to log in to a computer, much less download and rename an exe file.
Hi,
I generally change EXTENSION to ex_ and send the mail.. I will put instructions to rename it to exe and it works for me always..
Nice to see other tips fellow netizens have shared..
Regards,
Leela
Am I the only one who uses Dropbox? :-)
You can upload and send exe files via Google Docs. I do it all the time.
http://goo.gl/B8eLG
Upload it to google docs!
LOL you never tought of that?
Well uploading to Google Docs or a file hosting site does not really make that much of a difference.
I use GMail as primary email address with options set to send all email received to my POP3 account with auto archive set so I can read it in Thunderbird. The major problem with this is if someone else wants to send me an EXE or ZIP containing an EXE. IIRC neither the sender nor myself gets notification that the email did not complete thought the email itself is successfully received by gmail where I typically never see it.
Workaround is to request known senders to rename before attaching as zip_file or exe_file and then rename at my end. From unknown senders – I probably don’t want the file anyway :-)
PS: The method is working with any compression algorithm, not only RAR, if is able to encrypt file names.
I use the same method as Hans Warschau, for several years, and it works perfectly.
I bet .rar would work too, being proprietary.
Zipping the file and zipping again the zipped, works for me!
I use Affixa. It’s free for personal use.
Send .exe, zip, .rar, whatever… Sends the file out as an attachment, like the old drop.io site did.
Simple, straight forward.
Also allows me to use my gmail as the default Email Program some programs require when you want to send from within them.
This is why I generally use Yahoo Mail. I only use Gmail for simple “texting” and for Android. Nothing else.
I’ve also been changing the extension name for years so I can smuggle my .exe files via Gmail.
But instead of changing the .exe, I usually just append an extra extension, like this:
‘filname.exe.removethis’
That way, even people who have received no prior instructions are likely to realize what to do once they receive the file (assuming of course they are not computer illiterates and know what an extension is).
I would really like an option in Gmail that enables receiving of EXE-files.
Each exe-file could have a big red warning message near the attachment and 100 popups if that would help. Not having to ask people to rename the extension would be great.
I usually just rename from ‘file.exe’ to ‘file.ex’ :-)
There are two advantages, the obvious being that it is much faster to change forth and back. The other significant advantage is that the extension is not known by any OS, so there is no hiding it. With a ‘txt’ extension under Windows for example, it could be a hassle for the recipient to change back the extension, as most people have the default setting of hiding it for known file types.
The problem with modifying the extension is that not all people knows how to rename it back to a working .exe file, yes it is easy on windows just by hitting F2 key, but, if for any chance they double click it first and open the file with let’s say notepad (usually one of the first options when dealing with unknown file type for the system) and set that application to be the default program to open it (that check box is checked by default on windows 7) most windows machines will hide the extension of the file because of the settings that comes on windows to hide known file extensions, once that happens, you will need either to find that setting in folder options or to use another file manager that actually shows all file extensions and rename it (yes there are other ways to do it) but my point is that the recipient doesn’t always knows how.
I say all this because it has happened to persons I know, when you work in the technical support you get amazed on what the users can click or do.
Interesting tip, I agree it is easier to remember. you could probably name it .ex_ as well.
Hello Martin.
You can send .exe files compressed using Winrar with .rar extension, what you need to do is password protect it, but also (this is important or it wont work), you need to tick the option under advanced settings in WinRAR to “Encrypt the file name”.
That way is easier because you add the password to the recipient in the message, painless when you deal with people that doesn’t know much about using computers.
That way it works perfect, I’ve tried it before and tried again just now to be 100% sure it still works.
I can take a screenshot of the option you need to set in WinRAR but it will be in Spanish :D.
Tested using WinRAR version 3.93.
Hello Hans Warschau,
I tried to send a file with the extension .exe, as you said and it worked. Thank you so much.
Hans good addition. I’m using 7-zip which comes without options to create rar files. Suspected that it would work but could not check it. Thanks
These hacks or workarounds are the very reason I don’t use gmail (or any email) to send exe files. Nowadays I prefer the CloudApp (http://my.cl.ly/) to send executables or archives.
Once you uploaded the file, you just send a download link via email. The page the recipient gets is so simple you don’t even have to describe what to do. Example: http://cl.ly/262g04253d1k3z0P1P3a
Would be nice if GMail would allow to send .exe files. That they scan it before its sent or so. (not 100% safe offcourse)