EmailAddressUnescapeIdnDomain Method
Converts domain part of e-mail address string from IDN format into Unicode.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public static string UnescapeIdnDomain(
	string email
)

Parameters

email
Type: SystemString
E-mail address string with domain part in Punycode format.

Return Value

Type: String
E-mail address string whose domain part is not encoded in Punycode.
Remarks

You can use this method to convert e-mail address string you received from external sources (such as in e-incoming mails) back to human-readable format. It's safe to use this method for addresses which don't contain any Punycode sequences, you'll just get the same output as input.

This method converts "user@xn--d1acpjx3f.xn--p1ai" to "user@яндекс.рф". Only domain part (after "@") is converted.

If you have an EmailAddress object (not just a string) which you want to convert, you can use FromIdnAddress method instead.

See Also