added emailing for notifications