Package org.apache.commons.mail.util

# Class IDNEmailAddressConverter

java.lang.Object
org.apache.commons.mail.util.IDNEmailAddressConverter

public class IDNEmailAddressConverter extends Object
Converts email addresses containing International Domain Names into an ASCII representation suitable for sending an email.

Since:
  1.5
See Also:
  - https://docs.oracle.com/javase/tutorial/i18n/network/idn.html
  - https://en.wikipedia.org/wiki/Punycode
  - https://tools.ietf.org/html/rfc5891
  - https://en.wikipedia.org/wiki/Punycode

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IDNEmailAddressConverter()`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toASCII(String email)`
  Converts an email address to its ASCII representation using "Punycode".

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### IDNEmailAddressConverter

    public IDNEmailAddressConverter()
    Constructs a new instance.

- ## Method Details

  - ### toASCII

    public String toASCII(String email)
    Converts an email address to its ASCII representation using "Punycode".
    Parameters:
      `email` - email address.
    Returns:
      The ASCII representation