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
You said that Outlook isn’t your main email client, so which is your main one?
I think its thunderbird
It is Mozilla Thunderbird.
Awesome! This actually solved my problem… what a stupid bug.
If this is the same bug that I’ve encountered, there may be another fix: (1) hover over open Outlook item in Taskbar, cursor up to hover over Outlook window item, and right-click; (2) this should give you Restore / Move / Size / Minimize / Maximize — choose Move or Size; (3) use your cursor keys, going arbitrarily N/S/E/W, to try to move or size the Outlook window back into view. Basically, the app behaves as though it were open in a 0x0 window, or at a location that’s offscreen, and this will frequently work to resize and/or move the window. Don’t forget to close while resized/moved, so that Outlook remembers the size/position for next time.
THANK YOU Claude!!! I could get the main window to launch but could not get any other message window to show on the desktop. You are my hero!!!!
Solved my issue! 6 years later and this is still problem…
Fantastic. Thank you. Size did the trick.
This solved my Outlook problem, too. Thank you. :)
Thank you so much, this started happening to me today and was causing big problems. You are a life saver, I hope I can help you in some way some day.
You are a god – thank you!
thanks a lot…. work like charm.. :-)
Yah…thanks Claude. I’ve been having the same problem and tried all the suggestions…your solution was the answer. It had resized itself to a 0/0 box. Cheers
Excellent post. This had me baffled even trying to accurately describe the problem. This fixed it for me.
Thank you
Thanks a lot for the article. Don’t know why it happenend, don’t know how it got fixed, but it was really annoying and now it works :-)
Thanks a lot. I was facing this issue from past 3 week. I tried everything but no resolution. The issue was happening intermittently and mainly when I was changing the display of screen ( as i use 2 monitors). The only option i had was to do system restore. But thanks to you.
I’ve been tried to sole this problem for 12hours. Your comment about changing the display of screen helped me a lot!! Thanks!!
Thank you…don’t know why this happened but your instructions helped me fix it. Running Windows 10 and office pro 2007
Great tip! Thanks!
Worked for me, too – thank you!!!
It’s Worked for me, too
thank you very much!
I had a similar issue with Outlook 2013 on Windows 10 and this helped me to fix it. Thank you very much!
Thank you so much. Solved!
Considering you published this in 2012, incredible not been debugged by Microsoft.
Thank you again. M
This problem was faced by only one user logging to TS 2008 r2 using outlook 2010.The issue was resolved.
Thanks.
Great tip. Thank you!!!! If it helps, I had to use the Control Key and the arrow keys at the same time to bring my window back into view. Worked like a charm.
Thank you, this worked !!!!
Man, you are a fucking god. Thanks a lot, what an annoying bug!!
Awesome, this post solved the issue. Many thanks!