Add support to send email on health check failure
Fix bug and use env variable for sites to check