Upgrade to Jakarta Mail 1.6.4. Jakarte EE is the renamed Java EE which Oracle contributed to the open source community. It uses the same class names as Java Mail in the implementation. The API is different, but the dependency wasn't needed for compilation or testing so I left it out.
I excluded the old Java Mail test dependency in GreenMail to avoid conflicts due to the different artifactId.
Upgrade to Jakarta Mail 1.6.4. Jakarte EE is the renamed Java EE which Oracle contributed to the open source community. It uses the same class names as Java Mail in the implementation. The API is different, but the dependency wasn't needed for compilation or testing so I left it out.
I excluded the old Java Mail test dependency in GreenMail to avoid conflicts due to the different artifactId.