title: Send email from a batch script. Blat doesn't work
body: <p>I need to send an email from a batch script. I tried several solutions without success.</p>
  
  <p>For example, with <a href="http://www.blat.net" rel="nofollow noreferrer">Blat</a>:</p>
  
  <pre><code>: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"
  </code></pre>
  
  <p>When I run the script, I just get a Windows crash:</p>
  
  <p><img src="https://i.stack.imgur.com/55Cf4.jpg" alt="A Win32 command line eMail tool stopped working"></p>
  
  <p>Does someone have a better solution?</p>
  
  <p><strong>EDIT &amp; SOLUTION</strong></p>
  
  <p>I tried on our server (with our smtp) and it worked with Blat. See <a href="https://stackoverflow.com/a/8240841/652669">the full code</a> in my answer below.</p>