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