EDN Admin
Well-known member
Hi,
Is there a manner to use e-mail addresses with special characters with the System.Net.Mail.MailAddress class?<br/>
For example franÃois.dÃmontÃ@test.com.
Because mostly you get an System.FormatException:<br/>
System.FormatException: The specified string is not in the form required for an e-mail address.<br/>
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)<br/>
at System.Net.Mail.MailAddress.ParseValue(String address)<br/>
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
Someone a solution for this problem?<br/>
Thanks in advance.
Kind regards,<br/>
Kris
View the full article
Is there a manner to use e-mail addresses with special characters with the System.Net.Mail.MailAddress class?<br/>
For example franÃois.dÃmontÃ@test.com.
Because mostly you get an System.FormatException:<br/>
System.FormatException: The specified string is not in the form required for an e-mail address.<br/>
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)<br/>
at System.Net.Mail.MailAddress.ParseValue(String address)<br/>
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
Someone a solution for this problem?<br/>
Thanks in advance.
Kind regards,<br/>
Kris
View the full article