Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Possible Duplicate:
How can I send a windows executable via Gmail?

Why doesn't Gmail allow to attach EXE files? It's very annoying.
Gmail even denies if I archive the .exe file to .zip.
Why did they decide to do that?

How do you do it when you want to attach an EXE file?

share|improve this question

marked as duplicate by Lipis, Barry May 9 '11 at 7:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Since you are not comfortable with any of the solutions below(Mehper C. Palavuzlar's), I think you should ask the person in the receiving end to download necessary file from where you downloaded originally. –  Chethan S. May 8 '11 at 15:27

3 Answers 3

up vote 12 down vote accepted

Thanks to the new GMail AntiVirus Scanner, you cannot send or receive emails with exe, dll, ocx, com or bat attachments even if they are sent in a zipped (.zip, .tar, .tgz, .taz, .z, .gz) format (The .rar format is still allowed).

Since you cannot Turn Off GMail AntiVirus Scanning, you can use these GMail hacks to send program file (exe), virus samples and other blocked formats with GMail:

  1. Use a free file hosing online service like Rapidshare, Megaupload or Yousendit to upload your file and send the link of the uploaded file in your GMail message.

  2. Rename the file: Change the file extension to fool the GMail scanner. The new attachment could contain instructions making it easier for the recepient to derive the actuall attachment type. For instance,

    Rename Adobe-Reader.exe to Adobe-Reader.exe.removeme

  3. If you have lot of exe files to send, put them in a zip file and change the extension of the zip file as mentioned in the previous step. Remember that GMail denies zip attachments that contain exe files. Pass-Protection won't work either since GMail can examine exe filenames even in password protected zipped files as the archived filename listings are not encrypted by the Zip program.

  4. Use a different compression software like WinRAR which compresses files in .rar format. GMail is currently not scanning or blocking .rar filetypes. But there is a high probability that GMail might support rar formats in future. In that case, you can consider splitting the rar files and attaching them separately (like .r1, .r2..)

Important: I would recommend only the first technique since all others violate Google policies and Google could even terminate your GMail account.

Source: Attach and Send Any File Type with GMail Like EXE, ZIP, Videos; Trick GMail Antivirus Scanner

On 05/14/2012 (today), I attempted to upload a .rar file that contained a .vb file - one of Googles banned file types. gmail does not allow .rar files containing banned file types anymore either.

share|improve this answer
    
Thanks Mehper. IMO, tip1 has big drawback. It depends on other services. I want to save attachment file in gmail but not other service. tip2,3,4 makes people who receive mail uncomfortable. They should rename again, and have to install RAR if they don't have it. Any better idea? –  Benjamin May 8 '11 at 13:10
    
@Benjamin: Sorry but I can't think of any other solutions better than these... –  Mehper C. Palavuzlar May 8 '11 at 13:39
    
I don't think that you're violating anything.. (correct me if I'm wrong) It's against their policy to rename the files or use other archiving tools than Zip? They just want to protect the users by accidentally opening the file right away.. but if it is renamed is stopping being executable and it's up to the user what to do with the file! They are not going to terminate your account because of that..(I think) –  Lipis May 8 '11 at 17:04
    
ya, we change zips to .piz files at work, and it seems fine –  Neil McGuigan May 8 '11 at 18:59
    
@Lipis: The violation issue is not totally reflecting my thoughts neither (I quoted it from the related article). I just added that in case Google's policy includes such conditions. It would be better if someone who read the related Gmail policies could enlighten us. –  Mehper C. Palavuzlar May 8 '11 at 19:28

I recommend simply giving a link to the original host of the EXE file, if it exists: you don't have to upload the file and if it gets shared again everyone will save on upload bandwidth and time. Makes it easier and faster for both ends if the file is already hosted somewhere.

Or, in case it's an original EXE that you've created, either get your own host or use a 3rd party service such as Dropbox or CloudApp. It will even look more professional, as it probably should be.

A last option would be using Google Docs. Hopefully this will get integrated with gmail someday.

share|improve this answer
2  
+1 for Hopefully this will get integrated with gmail someday. –  Benjamin May 12 '11 at 3:54

Another method glossed over in @Mehper's article - zip it with a password. The .zip format supports encrypting the filenames in addition to the files, so gmail will not be able to tell the file contains an executable.

Just make sure you tell the recipient the password!

share|improve this answer
    
Pass-Protection won't work either since GMail can examine exe filenames even in password protected zipped files as the archived filename listings are not encrypted by the Zip program. –  Mehper C. Palavuzlar May 8 '11 at 19:30
2  
@Mehper: That is not true; I use this method to transfer .exe files through gmail. You just need to have a zip-program that supports encrypting the filenames as well (I know Winrar and Winzip do) –  BlueRaja - Danny Pflughoeft May 8 '11 at 19:48
1  
ZIP files does not support filename protection by definition, no matter what software you use. You probably compressed your files to RAR that supports this feature. –  Isaac Jun 1 '11 at 16:03
1  
@Isaac: Nope, it's definitely zip. –  BlueRaja - Danny Pflughoeft Jun 1 '11 at 16:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.