Add method to check type of body in email