EmailAddressFromIdnAddress Method |
Namespace: MailBee.Mime
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.