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
Jakarta Mail 2.0.0 release is the first release with package namespace changed to jakarta.mail. The main jar file is located at com.sun.mail:jakarta.mail.
This release contains no other enhancements nor bug fixes, except for the minimal required Java SE version which is now Java SE 8. This is also the release included in Jakarta EE 9. Applications are able to switch to this new version by just changing all imports that use javax.mail.* to instead use jakarta.mail.*.
Reacted by Thomas, Eduardo Ramos, Christophe, 2beers, Jukka Nikki, Mathias Lagerwall and catapop84
I have avoided switching to Java8 until now as Java7 still had a market share of around 5-10% until recently (off the top of my head). I'll do a new survey and see if a switch can be made more safely now...
Could you please consider removing the low priority label from this?
An upgrade to version 2.0.0 or higher would be great, as other libraries already made that change, which leads to incompatibility for the following reason (illustrated in steps):
the other library has version 2.0.0 as a dependency, SimpleJavaMail has a lower version as a dependency
the buildsystem now chooses the higher version automatically, meaning that the lower version won't be available as a library
now due to the change in the package structure, SimpleJavaMail can't access the required parts of jakarta mail anymore, as it expects them to be at javax.mail (where they aren't)
This means, that it currently is impossible to use SimpleJavaMail together with other libraries which implement a newer version of jakarta mail.
Reacted by Thomas, Christophe, Erik Agterdenbos and Mathias Lagerwall
I started migrating to Jakarta Mail 2.0.0. As https://github.com/markenwerk/java-utils-mail-smime is archived, I'm forking it so I can update the dependencies to Jakarta Mail 2.0.0 as well. I'll go ahead and merge some of my ignore pull requests as well, so I can clean up Simple Java Mail a bit finally.
Reacted by catapop84, Rohan Nagar, Eduardo Ramos, Mathias Lagerwall and janglada
I'm in talks with the developers (both last one and original developers) to obtain permissions to relicense S/MIME under ApacheV2 and have procured 2 out of 3 permissions. When that's done, I'll start upgrading those projects.
Reacted by catapop84, Erik Agterdenbos, kozi, janglada, Jonathan Hult and Jukka Nikki
Yes, I've obtained all permissions and started migrating to Java 8 and Jakarta new version some time ago, but I put it on hold for some time to catch some breath. I've recently started picking up some maintenance work again to get back into the flow so I hope to pick this up again soon.
Update, 6 September 2026: The written permissions and related correspondence are now preserved in the java-utils-mail-smime repository.
Alright, things are looking up. I've upgraded everything to Java 8, Jakarta 2.0.1 and latest log4j version due to the recent security issues there. I've forked and migrated markenwerk DKIM and S/MIME to the Simple Java Mail space, with permissions of all parties involved and everything is not up to day and under ApacheV2 license.
Activity
Rakambda commentedon Nov 24, 2020
Will have to update
jakarta.activationtoo.I think that these dependencies will have to update to new namespace before:
net.markenwerk:utils-mail-dkimnet.markenwerk:utils-mail-smimeorg.simplejavamail:smtp-connection-pool (because of com.github.bbottema:clustered-object-pool)bbottema commentedon Nov 24, 2020
I have avoided switching to Java8 until now as Java7 still had a market share of around 5-10% until recently (off the top of my head). I'll do a new survey and see if a switch can be made more safely now...
jakobkmar commentedon May 2, 2021
Could you please consider removing the low priority label from this?
An upgrade to version
2.0.0or higher would be great, as other libraries already made that change, which leads to incompatibility for the following reason (illustrated in steps):javax.mail(where they aren't)This means, that it currently is impossible to use SimpleJavaMail together with other libraries which implement a newer version of jakarta mail.
bbottema commentedon Jun 4, 2021
I started migrating to Jakarta Mail 2.0.0. As https://github.com/markenwerk/java-utils-mail-smime is archived, I'm forking it so I can update the dependencies to Jakarta Mail 2.0.0 as well. I'll go ahead and merge some of my ignore pull requests as well, so I can clean up Simple Java Mail a bit finally.
bbottema commentedon Jun 28, 2021
I'm in talks with the developers (both last one and original developers) to obtain permissions to relicense S/MIME under ApacheV2 and have procured 2 out of 3 permissions. When that's done, I'll start upgrading those projects.
jhult commentedon Dec 21, 2021
@bbottema, any news on this?
bbottema commentedon Dec 24, 2021
Yes, I've obtained all permissions and started migrating to Java 8 and Jakarta new version some time ago, but I put it on hold for some time to catch some breath. I've recently started picking up some maintenance work again to get back into the flow so I hope to pick this up again soon.
Update, 6 September 2026: The written permissions and related correspondence are now preserved in the
java-utils-mail-smimerepository.#322, #295: Continue upgrading to Java 8 (updating all our self-manag…
[-]Upgrade to Jakarta Mail 2.0.0 Final[/-][+]Upgrade to Jakarta Mail 2.x.x[/+]#295, #322: Switched to David Moten's subethasmtp fork which updates …
#295, #322:Updated S/MIME dependency to the migrated version now host…
#295: finished Jakarta 2.0.1 migration
bbottema commentedon Dec 28, 2021
Alright, things are looking up. I've upgraded everything to Java 8, Jakarta 2.0.1 and latest log4j version due to the recent security issues there. I've forked and migrated markenwerk DKIM and S/MIME to the Simple Java Mail space, with permissions of all parties involved and everything is not up to day and under ApacheV2 license.
#322, #295: Cleaned up a bunch of code with Lombok
bbottema commentedon Jan 2, 2022
7.0.0 just released with the upgrade to Jakarta Mail 2.0.1