Validating Emails for System.Net.Mail

added by rcash
8/14/2011 10:26:23 PM

141 Views

When working with the System.Net.Mail API to send out messages, you may have run into a problem when you add an email address that doesn't exist to a message, it will sometimes throw an exception. Here are some ideas on how to handle these exceptions that might come in handy especially when you're sending out bulk emails.


1 comments

vijayst
8/15/2011 7:37:56 AM
The post really talks a lot about refactoring the code to make it look clean. A lot of thought has gone to avoid violating the DRY principle. I really liked the simplicity of the validations.