title: What is the best way to send an email from a batch file?
body: <p>I have a nightly batch job that can tell if it has failed. I want it to send me an email, possibly with an attachment when it does. </p>
  
  <p>How can I send an email from a Windows Batch (.bat) file?</p>