Email Alerts for Windows Service Failure

by Nathan 17. November 2010 09:03

 

Requirements:

* Download Mailsend (This is a commandline program that allows you to send email)

http://www.muquit.com/muquit/software/mailsend/mailsend.exe.zip

* An available SMTP Server

 

Go to Services > Right Click Properties > Recovery (Tab)

 

Create your cmd file to be run with the below text. In this case I have named it servicefailure.cmd

mailsend -f info@nathanbaker.com.au -d nathanbaker.com.au -smtp 10.1.1.1 -t info@nathanbaker.com.au -sub "Subject Line Here" -cc "sendtome@hotmail.com" +bc -cs "ISO-8859-1" -M "This is the message you will send in the body of the email."

Tags:

Windows

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen