Link to home
Start Free TrialLog in
Avatar of seanweb
seanweb

asked on

How do I make a service stopping trigger an e-mail?

I am trying to set up an auto email when a specific service stops.
ASKER CERTIFIED SOLUTION
Avatar of Elwin3
Elwin3
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seanweb
seanweb

ASKER

That's great thanks, how can I test it though? As stopping the service manually I would guess is not picked up as a failure, right?
Avatar of seanweb

ASKER

Also, I assume that writing this out on notepad and saving as a .vbs file is adequate, yes?
yes thats right just save as .vbs

a bit tricky to test I agree. You can obviously test the script on it's own.
Avatar of seanweb

ASKER

Thanks, I have tested the script and have an error on line 15, anything you can see?
what smartshost did you enter in the script. For example - I use a ISP called plusnet so my smarthost is relay.plus.net but rememebr this must be the smarthost of the line you are going out off.

 
Avatar of seanweb

ASKER

AhHa! Missed that, working perfectly now, thank you very much.
Avatar of seanweb

ASKER

Great script, very useful, took no time at all.