Creating an alert and enabling email notifications