Block sending mails
<p>I am a windows forms programmer. We generally programme functionality into a user control.
And many time functionality requires to send an email.</p>

<p>I want to do some thing like :- if i set up the flag "This application is running in testing mode". Then all mail sent form the application (from any of the user control)
should be blocked.</p>

<p>Remember i dont want to do any changes in my existing user controls. or the mail sending lib. I want this to be done only in the container or rather in the Program.cs file.</p>

<p>Thanks</p>
