public static string EscapeIdnDomain( string email )
Public Shared Function EscapeIdnDomain ( email As String ) As String
You can use this method to get an international e-mail address string in SMTP friendly format (called Punycode). It's safe to use this method for addresses which don't contain any international characters, you'll just get the same output as input.
This method converts "user@яндекс.рф" to "email@example.com". Only domain part (after "@") is converted.
|Punycode works for domain part only. See ToIdnAddress method documentation on how to deal with e-mail addresses having international chars in username (not just in domain).|