One problem with email notifications is it usually sends too many emails. Errors frequently happen in series. For example, a temporarily issue with network can result in hundreds repetitive emails. In result an email notification designed as a “VIP” notification is downgraded to the “annoying” status.
This email flooding could be mitigated with this solution.
A Sample demonstrates using the emails for sending notification in case of failed messages.
It compounds several similar errors in one email notification.
Recently I’ve downloadedthis sample
to MSDN Gallery.
It has all solution artifacts and can be used in real-life projects.