I am creating an AWS Lambda function in java quarkus.
I am using java mail and Amazon SES for email.
I have all the required dependencies added and its running completely fine while testing locally through postman. I get all the attachments that is pdf file on email. But whenever I try to test in the AWS Lambda console I get this:
no object dch for mime type multipart/mixed
I have tried adding the thread to load class and also:
MailcapCommandMap mc = (MailcapCommandMap) CommandMap.getDefaultCommandMap(); mc.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html"); mc.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml"); mc.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain"); mc.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed"); mc.addMailcap("message/rfc822;; x-java-content- handler=com.sun.mail.handlers.message_rfc822");
but no luck as of now. Any one knows some solution?