applying email notifications