IIS7 - email alert when an Application Pool stops?
Solution 1:
Turn on health monitoring, pointing to an email provider:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="[email protected]">
<network defaultCredentials="false"
host="example.com"
password="mypassword"
userName="emailauthenticationusername" />
</smtp>
</mailSettings>
</system.net>
<healthMonitoring>
<providers>
<add name="MailWebEventProvider"
type="System.Web.Management.SimpleMailWebEventProvider"
buffer="false" />
</providers>
<rules>
<add name="Application Lifetime Events Default"
eventName="Application Lifetime Events"
provider="MailWebEventProvider"
profile="Default"
minInstances="1"
maxLimit="Infinite"
minInterval="00:01:00"
custom="" />
</rules>
</healthMonitoring>