How to send E-Mails with EXE Attachment
Tip by Collin McNeil | Last update on 2023-11-30 | Created on 2012-04-19
Anyone, who once wanted to send an executable file such as an Windows application in form of an EXE file by email should be familiar with this problem: Some mail providers like Gmail from Google, Microsoft Outlook, Yahoo or even some companies automatically sort out e-mails with an EXE attachment, because there is a great danger that the executable file contains a virus, because viruses are often spread via email.
But what if you really need to send an EXE file or any other type of executable as an attachment and the recipient also wants to receive it? We would like to illustrate three ways to circumvent the automatic rejection:
Solution 1: Rename File
Some e-mail programs and providers only look at the extension of the file attached. Once a file ends on ".exe", it will be automatically sorted out. In such a case it is sufficient to change the file extension of the program. Simply send your file "program.exe" under the name "program.xyz" and it should come through.
Solution 2: Password-Protected Archive
If you want to play it safe, you should use our second solution. Namely, some mail programs analyze the structure of the files regardless of checking their extension and so, they are able to detect also renamed executable programs.
First, you have to pack the file in an archive, such as a ZIP, 7Z or RAR file. Unfortunately, that is not enough, because many mail programs are able to look into a ZIP archive.
But this is not working if the ZIP archive is password protected. So, just pack your archive with your program in another archive that is protected with a password and you can send applications without they are sorted out. Of course, you have to tell the receiver your password, so that he can open the attachment.
If there are nevertheless occurring problems despite all of this, you can also try it with more unknown archive formats compared to the very well-known ZIP format and hope that the mail provider cannot read this format or at least is not checking it.
Solution 3: One-Click-Hoster
If both solution 1 and solution 2 fail, solution 3 comes into play: Just send your files indirectly. First upload the file to an on-click-hoster and then only send the link to this file.
Alternatively, this solution of course also works using an own server to which the file is uploaded in order to only send a corresponding link.
About the Author
The author has not added a profile short description yet.
Show Profile
Related Topics
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
PHP: Sending an E-Mail
Tutorial | 0 Comments
Put Windows via Script into Hibernation or Sleep Mode
Tutorial | 0 Comments
jQuery: Toggle Checkboxes (Select/Unselect All)
Tip | 0 Comments
How to avoid Spam Mails
Tip | 0 Comments
PHP: Send Output of a Script by Mail
Tutorial | 0 Comments
Spam-Mails: Do unsubscribe-links have any effect?
Question | 1 Answer
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Thanks for the tip! Sometimes just a more unusual packing format helps to hide the file. RAR or 7Z should in most cases be enough.
2012-06-19 at 22:23
Thank you very much! That saves us a lot of time. Otherwise, we have always laboriously uploaded the files to an FTP server and then distributed the link. This method is a lot easier and more effective!
2018-10-10 at 23:36
Another alternative: Upload the file to a one-click hoster like Rapidshare and Co. This is usually quite quick and uncomplicated.
2022-11-03 at 21:45
...then it still remains the problem that Windows 10 deletes the received file for security reasons...
2023-11-12 at 15:25