send emails configured by categories.

can specify categories for both failed and successful emails
close #35