Prev: RED LUST-The ghd new limited edition colour collection
Next: Error form control XXXcontrol is not a member of form
From: Marcus Michaels on 26 Jul 2010 05:56 Hi folks, I am recently experiencing an issue, where correctly formatted email addresses can not be passed to the MailAddress constructor. I use a string variable to assign he address and the code breaks with a FormatException thrown. I saw other posts referring to issues in the web.config, but I have no issues. Most addresses are fine, but the ones throwing an exception can be added as text directly and worj fine. A sample dim e as string e="someone(a)domain.com" Dim objMail As MailMessage = New MailMessage objMail.To.Add(e) the statemet above fires the error. Dim objMail As MailMessage = New MailMessage objMail.To.Add("someone(a)domain.com") works perfectly though. Any hints??? Marcus |