orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 220 forks source link

Support internationalized email addresses #4293

Open ebruchez opened 4 years ago

ebruchez commented 4 years ago

Example: "ÆØÅ@gmail.com" fails.

+1 from customer

ebruchez commented 4 years ago

History of the Java Mail API:

Version 1.6.0 says it's supports "internationalized email addresses (RFC 6530/6531/6532)". So we should try to upgrade to a newer version and see if things work.

ebruchez commented 4 years ago

It seems that only the APIs are at the Jakarta Mail API.

This said, upgrading to 1.6.2, I get a syntax error from GMail:

555 5.5.2 Syntax error. n12sm12033364pgb.32 - gsmtp
ebruchez commented 4 years ago

Consider mail.mime.allowutf8=true: check if already set to that, and if the behavior changes if we change it.

Also check if we can enable debugging in Java Mail to see what's the message sent (props.put("mail.debug", "true")).

ebruchez commented 4 years ago

Commit that implements "addressing i18n via RFC 6530/6531/6532": https://github.com/javaee/javamail/commit/d3409129f503c6b0e45bd2bb1e6f0cc0b1fc3d86#diff-81e1ed46db30c51becd0b208de1c7699