notificaiton system recognizes if a notification needs to be sent via email or text