javax.mail.NoSuchProviderException: No provider for smtps

后端 未结 9 1403
离开以前
离开以前 2020-12-11 16:14

I\'m trying to set up my Java project to be able to send e-mail (via g-mail, if it matters) and am getting \"javax.mail.NoSuchProviderException: No provider for smtps\" ever

9条回答
  •  不知归路
    2020-12-11 16:49

    So it turns out that the issue was that an outdated version of mail.jar was included in a project that I was referencing and, upon updating that copy of the mail.jar, the issue was resolved.

    For future reference, is there any way to log or provide visibility on such jar conflicts?

    https://confluence.atlassian.com/confkb/cannot-send-email-due-to-javax-mail-nosuchproviderexception-smtp-error-154079.html

提交回复
热议问题