email notification is not working properly