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:

a win32 command line email tool stopped working

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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -