In short
- Email blocks program and script files like .exe, .bat and .msi to stop viruses.
- Renaming the file is a poor fix, a link or a cloud service is the clean way.
- Send the file with a free link and the other person opens it in the browser.
Email services scan every attachment. Some file types are blocked completely, even if the file is harmless, because those types can run code on a computer.
Google says Gmail blocks these types to protect your account from viruses and harmful software. Microsoft says the same about Outlook, because attachments are one of the most common ways viruses spread.
Which types are blocked
Gmail lists many types, such as .exe, .bat, .cmd, .msi, .js, .vbs, .ps1, .dll, .iso, .jar, .apk and .lnk. Outlook blocks a similar set, for example .exe, .bat, .msi, .js, .vbs, .ps1, .lnk and .mdb.
These are programs, scripts, installers and shortcuts. Photos, PDFs and normal documents are not on the list.
Zip files do not hide them
Many people try to put the file in a zip. Gmail says it also blocks these types when they are found inside archives like .zip or .tgz, and it blocks password protected archives with archived content.
So a zip is not a safe way around the block. The message can still be rejected, and the other person may never see why.
Why a harmless file gets blocked
The email service cannot know if you made the file yourself. It only knows the type can run code, so it treats all files of that type the same.
Google also says it updates the list as harmful software changes. A type that passed last year may be blocked now.
What Microsoft and Google suggest
Google says to ask for the file to be uploaded to Google Drive and then shared from there. Microsoft says to upload it to OneDrive or SharePoint and send a link.
Microsoft also mentions that on an Exchange account an email administrator can unblock certain types. This is only for work accounts, and it is a decision for the administrator.
Renaming is a weak trick
Microsoft says you can rename the extension, for example file.exe to file.docx, and the receiver must rename it back. This is awkward and it confuses people.
A file with the wrong ending also looks suspicious, which is exactly what security tools watch for. It is better to send the real file as it is.
Send it as a link
A link does not go through the attachment filter of the mail service, so the block does not apply to the message itself. The other person opens the link and downloads the file when they decide to.
With a Room you upload the file and send one link. It opens in the browser, with no account needed for the person receiving. Programs and scripts such as .exe, .js or .bat files are blocked in a Room too, so it is for documents, photos, videos and other everyday files.
Never compressed or converted, one link, no account needed. Free up to 10 GB.
Send big files with one link →Questions
Why is my harmless file blocked?
Email blocks by file type, not by what is inside. Types that can run code are blocked for everyone.
Does a zip file get past the block?
Not reliably. Gmail also blocks these types inside archives.
Is the size the problem?
No, the block is about the type. A tiny file can be blocked.
What is the best way to send it?
Upload it and send a link, as Google and Microsoft both suggest.
