Skip to content

Update JavaMail dependency to 1.6.2, adding support for UTF-8 charset #184

Closed

Description

@mommcilo

Address
test.töst@test.com
is not valid

MailerBuilder.clearEmailAddressCriteria()

doesn't play any role because

org.hazlewood.connor.bottema.emailaddress.EmailAddressValidator#isValidMailbox still return false

Just change email to

test.tost@test.com

it became valid. Using RFC strategy also is not working. According to the latest RFC UTF-8 is valid to be used in emails.

Activity

  1. changed the title [-]Simple java mail is not support UTF-8 charset[/-] [+]Simple java mail is not supporting UTF-8 charset[/+] on Nov 29, 2018
  2. mommcilo commented on Nov 30, 2018

    @mommcilo
    Author

    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.

  3. bbottema commented on Nov 30, 2018

    @bbottema
    Owner

    I was just looking at your report! clearEmailAddressCriteria had a bug in previous versions, that's indeed fixed in 5.0.6 (under #167).

  4. mommcilo commented on Nov 30, 2018

    @mommcilo
    Author

    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

  5. bbottema commented on Nov 30, 2018

    @bbottema
    Owner

    Perhaps this similar issue sheds some light on the issue: bbottema/email-rfc2822-validator#9

  6. mommcilo commented on Nov 30, 2018

    @mommcilo
    Author

    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)

    [INFO] +- org.simplejavamail:simple-java-mail:jar:5.1.0:compile
    [INFO] |  +- com.sun.mail:javax.mail:jar:1.5.6:compile
    

    and even if I use clearEmailAddressCriteria it 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

    [INFO] +- org.simplejavamail:simple-java-mail:jar:5.1.0:compile
    [INFO]   +- com.sun.mail:javax.mail:jar:1.6.2:compile
    
    

    Now it works.

  7. bbottema commented on Dec 3, 2018

    @bbottema
    Owner

    Will update the JavaMail dependency for the 6.0.0 release.

  8. added this to the 6.0.0 milestone on Dec 3, 2018
  9. 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
  10. 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
  11. added a commit that references this issue on Dec 31, 2018
  12. bbottema commented on Dec 31, 2018

    @bbottema
    Owner

    Updated javax.mail version for upcoming release 6.0.0.

  13. modified the milestones: 6.0.0, 5.2.0 on Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions