EmailAddressFromIdnAddress Method
Gets a new EmailAddress object which is a copy of the current object with the domain part converted from IDN format.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public EmailAddress FromIdnAddress()

Return Value

Type: EmailAddress
A reference to newly created EmailAddress which is a copy of the current object with the domain part converted from Punycode.
Remarks

If you have an e-mail address which may potentially have Punycode sequences (ASCII-encoded international characters) in the domain part, you can call this method to make this address human-readable and use the resulting object instead of the original EmailAddress object.

It's safe to use this method for addresses which don't contain any international characters, you'll just get the new object which has the same values as the current one (it will still be a new EmailAddress object, not a reference to the original EmailAddress object).

In case if you have just an e-mail address string, not an EmailAddress object, you can use UnescapeIdnDomain(String) method instead.

See Also