windows - Send email from a batch script. Blat doesn't work -
i need send email batch script. tried several solutions without success.
for example, blat:
:send_mail "\program files (x86)\blat275\full\blat.exe" -server smtp.gmail.com -port 525 -f myadress@gmail.com -to recipient@foomail.com -s "hello" -body "world"
when run script, windows crash:
does have better solution?
edit & solution
i tried on our server (with our smtp) , worked blat. see the full code in answer below.
realize old, googlers:
blat not work gmail, requires ssl connection accessed on smtp, blat doesn't (as of 06/02/2013) support
see here: http://www.jeffkastner.com/2010/01/blat-stunnel-and-gmail/ (slightly messy) workaround.
Comments
Post a Comment