Wednesday, April 17, 2013

Solution to Apostrophes in Email Addresses (.Net)

It should work - http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/84dd5b66-f68d-4b0c-823f-25aa7c7b4d6b/ i.e. create MailAddress("myFirstName.O'Reilly@mywebsite.com"), and then use that to create a MailMessage, and pass to SmtpClient.Send.

No comments: