Add code for sending alerts via email