Hi,
I have a .net service that processes messages. For any failures, i use log4net and write to a file. I added an SMTP appender for this. The issue is that I only want to send one email when something goes wrong. The MaxRetries in my app.config is set to 5 and this is correct, 5 errors are logged in the log4net file but 5 emails are also sent.
Is there some way I can get a handle on the max retries and fire my email when that is reached?
Thanks for your help.