Alarm email status function modified