ghacks Technology News

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.

gmail error executable file

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.

Related Articles:

Gmail Background Send
Create executable media files
Google+ Gets Send A Message Button For Easier Sharing
Thunderbird Send Later, Schedule Emails
Send Free SMS To US Numbers with Firefox

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Tuesday April 26, 2011 -
Tags:, , ,


Responses so far:

  1. KoalaBear says:

    Would be nice if GMail would allow to send .exe files. That they scan it before its sent or so. (not 100% safe offcourse)

  2. szekelya says:

    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

  3. Hans Warschau says:

    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.

  4. kostas says:

    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.

    • Interesting tip, I agree it is easier to remember. you could probably name it .ex_ as well.

    • Hans Warschau says:

      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.

  5. MNeMiC says:

    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.

  6. MartinDK says:

    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).

  7. DanTe says:

    This is why I generally use Yahoo Mail. I only use Gmail for simple “texting” and for Android. Nothing else.

  8. nickski says:

    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.

  9. Nikos says:

    Zipping the file and zipping again the zipped, works for me!

  10. Ryan D. Lang says:

    I bet .rar would work too, being proprietary.

  11. Raul says:

    I use the same method as Hans Warschau, for several years, and it works perfectly.

  12. Raul says:

    PS: The method is working with any compression algorithm, not only RAR, if is able to encrypt file names.

  13. Alec_Burgess says:

    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 :-)

  14. Baube19 says:

    Upload it to google docs!
    LOL you never tought of that?

  15. Baube19 says:

    http://goo.gl/B8eLG

  16. shle896 says:

    You can upload and send exe files via Google Docs. I do it all the time.

  17. g... says:

    Am I the only one who uses Dropbox? :-)

  18. Leela says:

    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

  19. OblongCircles says:

    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.

    • shle896 says:

      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.

  20. Dan says:

    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.

  21. Dheeraj says:

    awesome article. Sometimes I really find necessary to send exe files in emails

  22. yogesh says:

    plese send background gmail account setting

  23. simple says:

    Just use an obvious double extension like “file.exe.removethispart”

  24. kavaliero says:

    You can also use Forgetbox For send your exe file or whatever !
    It’s totally free and it works with unlimmited size ;)

    www.forgetbox.com

  25. Dave says:

    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.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us