We use blat to do this all the time in our environment. I also use it to connect to Gmail with Stunnel . Here are the options for sending the file
blat -to user@example.com -server smtp.example.com -f batch_script@example.com -subject "subject" -body "body" -attach c:\temp\file.txt
Or you can put this file in the body
blat c:\temp\file.txt -to user@example.com -server smtp.example.com -f batch_script@example.com -subject "subject"
Keng Apr 02 '09 at 15:10 2009-04-02 15:10
source share