I am working through some intricate code and I want to make sure I am made aware of any errors that may pop up at run-time. How I have done this in the past is to create a class that I throw exceptions at and from there send emails or alerts to let me know what is going on. As I understand it there is some exception handling that is already going on within the framework via an error provider. How do I take advantage of that and still provide a streamlined way of handling my exceptions? Also, is this a proper approach to using transactions within my code?
Here is an example of my code that I am trying to work this through:
Thus the credentials. If you supply a mail server, port, and credentials...that's email...period We use this everywhere. The only thing that you cannot do is pull mail down from a POP3 server...but sending...no problem