Getting Error when sending mail to the user

0
I'm getting the following when user tries to reset password by entering his email and clicking the send button.   Stack trace:   Error while sending email : class com.sun.mail.handlers.text_html cannot be cast to class jakarta.activation.DataContentHandler (com.sun.mail.handlers.text_html and jakarta.activation.DataContentHandler are in unnamed module of loader com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1 @33fe57a9)   Stacktrace : com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.datahub.connector.email.utils.EmailConnectorException: EC0x043: Error while sending mails. at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109)   Caused by: com.mendix.datahub.connector.email.utils.EmailConnectorException: EC0x043: Error while sending mails. at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109)   Caused by: EC0x043: Error while sending mails. at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109) Caused by: EC0x043: Error while sending mails. at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109)   Caused by: Failed to send email [ID: '<1287694808.0.1728364291735@Naveen-Kollu>'], reason: Unknown error at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109)   Caused by: class com.sun.mail.handlers.text_html cannot be cast to class jakarta.activation.DataContentHandler (com.sun.mail.handlers.text_html and jakarta.activation.DataContentHandler are in unnamed module of loader com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1 @33fe57a9) at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109)
asked
3 answers
1

Hi Naveen,

 

Please refer the below two similar communications, 

 

https://community.mendix.com/link/space/java-actions/questions/137793

https://community.mendix.com/link/space/connectors/questions/138690

 

Hope it helps!

 

Thanks & Regards,

Manikandan K

answered
0

Hi Naveen,

it is because of conflicting jar issue , can you try updating the email connector module also delete all duplicate jars

answered
0

Hello Naveen,

What do you mean "reset password"? Did you reset the password of the email account which is configured in Email connector and then trying to send email using that account.

If yes, and if you are using Basic authentication then - can you remove the account (after password reset) and then try to add the account in Email Connector.

If you are using OAuth code grant flow - can you try reauthentication before trying to send email.

 

regards,

Mahendra.

answered