Custom Email Publisher for Microsoft Exception Management Application Block
I've finally taken the time to have a good look at the MS Exception Management Application Block and I like what I see - I wish I'd incorporated it into my apps years ago instead of hardcoding ugly inflexible exception handling routines from scratch. Ah well, you live and learn. The default publisher supplied logs exceptions to the Event Log, but for most of my apps I'd much rather receive an email when an error occurs - this way it's possible to be a little more proactive and contact the customer who experienced a problem before they get in touch. To this end I've created a Custom Email Publisher based on the default publisher. Combine this with a customised base application exception containing properties for the application user's name and phone number and you're laughing.