Added email alerts to messaging system.