Skip to main content

Send executable file as attachment through email

Gmail, Yahoo Mail, or many other free email service providers normally don’t allow us to attach an executable (.exe) file with the email and send or receive them across the internet. We normally get such type of error while sending executable as attachment “xxx.exe contains an executable file. For security reasons, Gmail does not allow you to send this type of file”.

Due to security threats (like virus, worms, trojans or bots) email anti virus scanners employed by email service providers, all emails and their attachments are scanned and each and every type of executable is barred from getting send or receive through email.

Thus, we cannot send or receive any type of executable such as exe, dll, com, bat, etc through emails. Even if we try to send any executable by zipping it using any archiving tool (zip, tar, tgz, taz, z, gz), we cannot send or receive emails.

But here is the way out, well through minor tweaks we can still send executable attachments through email :
  1. If there is only one executable that you want to send, then just rename the extension of the executable file from say “xxx.exe” to something like “xxx” or “xxx.ex”. Now attach this renamed file with the mail and send it. Email scanners will not be able to detect it as executable and thus it can be easily sent across the internet through email. At the recipient’s end after downloading the attachment we just need to rename it back to its original name i.e. from “xxx” or “xxx.ex” to “xxx.exe”.
  2. If there are two or more executable to be sent through email or if you want to send two or more files (in which few of them are executable) through email then here are the two ways :
  • First zip them using any archiving tool you have like zip, tar, tgz, taz, z or gz then rename the archived file lets say from “xxx.zip” to something like “xxx” or “xxx.zi”, attach it to the email and send it. Email scanners cannot recognize renamed archive file and treat it like a single file thus it will be easily sent across the internet through email. At the recipient side, download the attachment and rename it back to its original name.
  • If you want to bypass this headache of renaming files then just archive the file with an encryption option and lock it with a security password. Encryption feature of archiving tools uses industry standard encryption algorithms and thus email scanners won’t be able to scan your attachment as they don’t have the password to open it. So attach this encrypted archive file with the mail and send it across the internet through email. Please note : do mention the security password used to lock the archive in the mail otherwise recipient will not be able to unzip the file.
  • There is one more easier way to send the archive through email. Just zip them using a “Winrar” or any other “.rar” archiving tool. Archive in “.rar” format is not recognized by the email scanners as an archive thus email scanners treat it as a single file and thus it can be easily attached and sent across through email. Please note : recipient also need some “.rar” archive tool to unzip the file.
Happy Emailing!!!

Comments

Popular posts from this blog

Exploring Node.js Internals

I found a great article explaining Node JS internals, must read : https://www.smashingmagazine.com/2020/04/nodejs-internals/ Some other articles : Introduction to Node.js Being an official website, Node.dev explains what Node.js is, as well as its package managers, and lists web frameworks built on top of it. “ JavaScript & Node.js ”,  The Node Beginner Book This book by  Manuel Kiessling  does a fantastic job of explaining Node.js, after warning that JavaScript in the browser is not the same as the one in Node.js, even though both are written in the same language. Beginning Node.js This beginner book goes beyond an explanation of the runtime. It teaches about packages and streams and creating a web server with the Express framework. LibUV This is the official documentation of the supporting C++ code of the Node.js runtime. V8 This is the official documentation of the JavaScript engine that makes it possible to write Node.js with JavaScript.

Tum mujhko karna maaf priye – Poem By Dr. Kumar Vishwas

Lyrics : O kalp-vraksh ki son-juhi, O amal-tas ki amar kali Dharti ke aatap se jalte, Man par chaayi nirmal badli Main tumko madhu-sad-gandh yukt, sansaar nahi de paunga ! Tum mujhko karna maaf priye main pyar nahi de paunga !! Tum kalp-vraksh ka fool aur Main dharti ka adna gayak Tum jeewan ke upbhog yogya Main nahi adhuri gazal shubhey Tum saam-gaan si pawan ho Himshikharon par sehsa kaundha Bijuri si tum man bhawan ho Isliye vyarth shabdo wala, vyapar nahi de paunga ! Tum mujhko karna maaf priye main pyar nahi de paunga !! Tum jis shaiya par shayan karo, Veh sheer sindh si pawan ho Jis aangan ki ho maul-shree Veh aangan kya vrandawan ho Jin adhron ka chumban pao Veh adhar nahin ganga tat ho Jiski chaya ban saath raho Veh vyakti nahin vanshi-vat ho Par main vat jaisa saghan chaaon ,vistaar nahin de paunga ! Tum mujhko karna maaf main pyar nahi de paunga !! Main tumko chand sitaron ka Saupun uphar bhala kaise Main yayavar banjara sadhu sur-sansar bhala kaise Main jeewan