generic email based notification handler