removed ridiculous hardcoded email function for an event that other modules can attach to