Added logic to send different email messages for each type of incident