You can query sys.databases to see if a database in online or not and then use sp_senddbmail to sendo ut a message or you can write an error out and create an alert based on that error.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question