Blat – Windows Command Line Utility that Sends Email using SMTP

Blat is a Windows (32 & 64 bit) command line utility that sends eMail using SMTP or post to usenet using NNTP. It allows you to do are send emails from scripts and batch files, so you can have messages sent automatically as an alert for whatever situation you like. First you must set up Blat.

Download Blat 

Launching the program from the command line will display the various switches and settings you’ll need to apply, but a minimal setup will look something like this: Blat -SaveSettings -f [email protected] -server -u [email protected] -pw password

With that done you can then probably send an email like this: Blat filename.txt -to [email protected]

Where “filename.txt” is a text file containing whatever you’d like to send (it transmits the contents of the file rather than sending it as an attachment, so it must be plain text), and [email protected] is the email address where you’re sending the message.

But if you need more flexibility then there are additional switches you can use, for example specifying the port to use for transmission. And you can optionally add extra switches to the sending line, so for instance you can have different scripts send messages via different servers and email accounts. Enter Blat at the command line to see the full syntax.

Be the first to comment

Leave a Reply