Class IDNEmailAddressConverter

java.lang.Object
org.apache.commons.mail2.javax.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:
  • Constructor Details

  • 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