You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update JavaMail dependency to 1.6.2, adding support for UTF-8 charset #184
Still stays a question why EmailAddressCriteria.RFC_COMPLIANT mailer doesn't accept UTF-8 when it became standard. It would be better to have validator, which accepts UTF-8 and validate a lot of other things, then to not have any. If you use example I provided you will see it only works if you use clearEmailAddressCriteria
com.sun.mail:javax.mail for example already changed logic according to the specification. And I will add this here in case someone have same problem. In my app this was dependency tree(javax.mail was loaded from spring-boot parent)
changed the title [-]Simple java mail is not supporting UTF-8 charset[/-][+]Update JavaMail dependency to 1.6.2, adding support UTF-8 charset[/+]on Dec 3, 2018
changed the title [-]Update JavaMail dependency to 1.6.2, adding support UTF-8 charset[/-][+]Update JavaMail dependency to 1.6.2, adding support for UTF-8 charset[/+]on Dec 3, 2018
Activity
[-]Simple java mail is not support UTF-8 charset[/-][+]Simple java mail is not supporting UTF-8 charset[/+]mommcilo commentedon Nov 30, 2018
This issue can be closed. Here is example:
https://github.com/mommcilo/test-simple-java-mail
In version 5.1.0 with clearEmailAddressCriteria it works but I used 5.0.1 in which it doesn't work.
bbottema commentedon Nov 30, 2018
I was just looking at your report!
clearEmailAddressCriteriahad a bug in previous versions, that's indeed fixed in 5.0.6 (under #167).mommcilo commentedon Nov 30, 2018
Still stays a question why
EmailAddressCriteria.RFC_COMPLIANTmailer doesn't accept UTF-8 when it became standard. It would be better to have validator, which accepts UTF-8 and validate a lot of other things, then to not have any. If you use example I provided you will see it only works if you useclearEmailAddressCriteriabbottema commentedon Nov 30, 2018
Perhaps this similar issue sheds some light on the issue: bbottema/email-rfc2822-validator#9
mommcilo commentedon Nov 30, 2018
com.sun.mail:javax.mail for example already changed logic according to the specification. And I will add this here in case someone have same problem. In my app this was dependency tree(javax.mail was loaded from spring-boot parent)
and even if I use
clearEmailAddressCriteriait want pass because this version of javax.mail will not validate positively non asci email.And then I had to exclude javax.mail and provide explicit dependency to the latest
Now it works.
bbottema commentedon Dec 3, 2018
Will update the JavaMail dependency for the 6.0.0 release.
[-]Simple java mail is not supporting UTF-8 charset[/-][+]Update JavaMail dependency to 1.6.2, adding support UTF-8 charset[/+][-]Update JavaMail dependency to 1.6.2, adding support UTF-8 charset[/-][+]Update JavaMail dependency to 1.6.2, adding support for UTF-8 charset[/+]#184, #186: switched to javax.mail 1.6.2 for improved UTF-8 support a…
bbottema commentedon Dec 31, 2018
Updated javax.mail version for upcoming release 6.0.0.