While migrating a simple SMTP mailer class from javax.mail to the current jakarta.mail, I ended up with the error
UnsupportedDataTypeException: no object DCH for MIME type ...
In various forums, some people suggested to write a custom DataHandler to support the missing MIME types in the newer Jakarta mail implementations.
Fortunately, the Java code does not need to be changed (despite the import changes).
After countless number of hours searching the Internet, I finally found the correct jar files to be used during runtime:
Hope this helps someone else.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3