commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siegfried Goeschl (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EMAIL-160) Add Support for International Domain Names
Date Sat, 02 Jan 2016 17:03:39 GMT

    [ https://issues.apache.org/jira/browse/EMAIL-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076586#comment-15076586
] 

Siegfried Goeschl commented on EMAIL-160:
-----------------------------------------

The current code you can find here

* https://github.com/sgoeschl/commons-email/tree/EMAIL-160
* Please note that the underlying "java.net.IDN" being used is only available from JDK 1.6
onwards
* Added a ".gitignore" to keep me sane

> Add Support for International Domain Names
> ------------------------------------------
>
>                 Key: EMAIL-160
>                 URL: https://issues.apache.org/jira/browse/EMAIL-160
>             Project: Commons Email
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Siegfried Goeschl
>            Assignee: Siegfried Goeschl
>             Fix For: 1.5
>
>
> Recently I needed to send an email to "info@gül.co.at" and failed with
> {code}
> org.apache.commons.mail.EmailException: javax.mail.internet.AddressException: Domain
contains control or whitespace in string ``info@gül.co.at''
> 	at org.apache.commons.mail.Email.createInternetAddress(Email.java:1941)
> 	at org.apache.commons.mail.Email.setFrom(Email.java:749)
> 	at org.apache.commons.mail.Email.setFrom(Email.java:732)
> 	at org.apache.commons.mail.Email.setFrom(Email.java:712)
> {code}
> The problem is that I would need to escape the german special characters in the domain
name part and I suggest to move that into commons-email



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message