added option to turn email alerts on/off
added option to turn email alerts on/off