Posted on: 4/4/2011 7:11:31 AM | Views : 725

Can you send emails to an address such as gary.o'brien@somewhere.com using system.web.mail? I am debugging an email sending service and I can't find any explicit validation going on to make an email address with an apostrophe cause the program to fail.
I'm pretty sure apostrophes in email addresses are allowed in System.Net.Mail but just wanted to check that there wasn't a quick fix before migrating the application to another framework version.
 
EDIT: Apologies, I wasn't given the whole story, the address it is failing on doesn't contain a true apostophe but one of those funny ' characters. An apostrophe worked fine, and its just a case of sorting some new validation further up.
 
...

Go to the complete details ...