Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Outlook

Sending an executable file via Outlook

0.00/5 (No votes)
5 Jan 2011CPOL 8.3K  
Outlook blocks certain files it finds to be dangerous. There has been plenty written about that. What the server stops from passing, either exchange, lotus notes or any firewall directly examining SMTP protocols on the wire for example, is a whole different story.I wrote some VBA code to...
Outlook blocks certain files it finds to be dangerous. There has been plenty written about that. What the server stops from passing, either exchange, lotus notes or any firewall directly examining SMTP protocols on the wire for example, is a whole different story.

I wrote some VBA code to include data into a text block in Outlook, it allows for complete files to be added to a text block. I reused the code to create a Word document, with macros/vba-code, that would work as a container for any kind of file. The files are encoded in a custom Base64 encoding, so as long as the firewall/server allows for Word documents (with VBA code) to pass, you can use it to send anything you like.

Here's the post[^], look for the downloadable example at the bottom. Give it a try.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)