Change how alerter sends emails, use templates instead of hard coded values in the code