Class IDNEmailAddressConverter
java.lang.Object
org.apache.commons.mail2.javax.util.IDNEmailAddressConverter
Converts email addresses containing International Domain Names into an ASCII representation suitable for sending an email.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IDNEmailAddressConverter
public IDNEmailAddressConverter()Constructs a new instance.
-
-
Method Details
-
toASCII
Converts an email address to its ASCII representation using "Punycode".- Parameters:
email
- email address.- Returns:
- The ASCII representation
-