Sending e-mail through the console utility Blat in Windows

Official website for downloading the program: www.blat.net

To execute commands with the program, you need to go to the directory where it is located, either specify the full path, or copy to the system directory.

Help for the program can be obtained by running the command:

blat -help

I will give an example of commands to send:

blat textmsg.txt -u test@example.com -pw test -to test@example.com -f test@example.com -s "Subject text" -server mail.example.com -attach file.txt
С:\Blat\blat.exe -body " " -u test@example.com -pw test -to "test@example.com,test2@example.com" -f test@example.com -charset utf-8 -s "Subject text" -server mail.example.com -attach С:\Blat\ixnfo.com.txt -log С:\Blat\log.txt -timestamp

To execute a command with a mouse click or from startup, you can save it to a text file with the *.bat extension and EOM 866 (DOS-866) encoding if Cyrillic characters are used.

Where:
textmsg.txt (text of the email message)
-body “text” (text of email message)
-u (username for connection)
-pw (password for connection)
-to (email recipient)
-f (email sender)
-s (message subject)
-server (send server address)
-attach (name of the attached file to the email message)
-log (log file)
-timestamp (timestamp for each event)

Leave a comment

Leave a Reply

Discover more from IT Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading