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.
How can I send an email from a Windows Batch (.bat) file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the SMTP-server that is a part of IIS is installed, you could use the Echo command to write a file to the pickup folder, and it’ll get sent.