How to send a batch file by email

batchemailgmailSecurity

Trying to send a batch file as an email attachment, I get the following error:

mx.google.com rejected your message to the following e-mail addresses:

foo@googlemail.com

mx.google.com gave this error: Our system detected an illegal
attachment on your message. Please visit
http://support.google.com/mail/bin/answer.py?answer=6590 to review our
attachment guidelines. q42si10198525wei.6

Your message wasn't delivered because the recipient's e-mail provider
rejected it.

This also happens if I place the batch file in a .zip archive. I need to send a batch file to everyone at my company for them to run, preferably without having to change file extensions first. Is this possible by email?

Best Answer

Its a 'security' thing, and in this case, changing the extension is the easiest way to fix it. I did a few tests before and gmail at the very least checks 7zip, and zip files.

You need everyone in the company to run it - use a fileshare and share the link to it internally. You might also be able to upload it somewhere and get the link to the others. In this case getting creative is the best idea.