Unable to send Mail from IDM after the java upgrade to AdoptOpen jdk1.8.0_332. Fails with error
javax.naming.NameNotFoundException: Mail -- service jboss.naming.context.java.Mail.
This issue was resolved by updating the javax.mail jar file located in the [wildlfy8.2]/modules/system/layers/base/javax/mail/api/main/ directory from the javax.mail-1.5.1.jar provided with Wildfly with a newer version: javax.mail-1.6.2.jar.
Update the module.xml in the same folder. Change the path pointer from javax.mail-1.5.1.jar to point to the new version javax.mail-1.6.2.jar.
This issue has an environmental aspect as the send mail issue could not be reproduced internally regardless of the JDK version used.