add categories for failed/successful emails

close #35