Enhancement: Simple Java Mail should throw an exception when trying to utilize S/MIME with smime-module on the classpath
JacekMazovia opened this issue · 3 comments
JacekMazovia commented
Hey,
I was trying to configure SMIME signing of mail. Finally succedded. But had problem that I used functions signWithSmime(). But saw no effect. Maybe it would be nice to add some note in documentation in the section "Signing / encrypting emails with S/MIME".
Maybe something like:
!! If you don't have class (...) from ..jar the signing won't work but print no error.
Later I found in source code fragment:
MimeMessageProducer :
if (ModuleLoader.smimeModuleAvailable()) {
message = ModuleLoader.loadSmimeModule().signAndOrEncryptEmail(session, (MimeMessage)message, email);
}
bbottema commented
JacekMazovia commented
Nevertheless. Thanks for great library.
bbottema commented
I've clarified the documentation a bit further and Simple Java Mail will now fail with an exception when trying to use S/MIME without the smime-module loaded. Just like how it works for the other modules.
Released in 7.8.2. Thank you for reporting!