BLAT for Windows

Easily mail any file from the command line

As of June 2003 Blat management has moved to

Blat is a Public Domain Windows 95/NT console utility that sends the contents of a file in an e-mail message using the SMTP protocol. Blat is useful for creating scripts where mail has to be sent automatically (CGI, backups, etc.), or just as a quick way to send a file or message quickly from the command line. It will store relevant configuration details in the registry for ease of use. Optionally, blat can also attach multiple binary files to your message.

In early 1998, I wanted a way to mail binary files quickly and reliably. The closest thing I found was BLAT v1.5, which would mail ascii files from the command line. From that version, I added modifications to allow mailing of multiple ascii or binary files as well. Christophe Henquin has added some other useful options -- port specification, retry level, and multiple profiles. His Blat page is at

Also, check out Getmail for Windows, which is a command line tool to automatically download mail, including the ability to automatically extract binary attachments. It's the perfect companion to blat!

The original authors homepage for Blat is As of October 1998, I have officially assumed responsibility for the maintenance of Blat.

The most recent version compiled for intel is version 1.9.4. It was released on December 12, 2001. The most recent version compiled for Alpha is version 1.8.2b. Please let me know if you can compile and provide me with a newer binary for the Alpha platform!

Gilles Vollant has created an intel binary which is only 35kb in size. This is distributed in the above ZIP when possible. To see how he has done this, check out his MSVC++ 7.0 project file

Blat DLL
Toby Korn has created a DLL version of blat. It is available from his page at

Visual Basic & Blat
Joel Limardo has created a VB class that uses blat. His page is at

Mailing List: A Blat mailing list was created Sept 20, 1999. click here to browse the archives, or...

Subscribe to the blat mailing list
Powered by

Revision history: