javax.mail.MessagingException with IOException while sending message OR javax.activation.UnsupportedDataTypeException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Unable to send email or received email notification.

The following appears in the atlassian-confluence.log:

1 2 3 javax.mail.MessagingException: IOException while sending message;  nested exception is: javax.activation.UnsupportedDataTypeException

Another symptom that you may find on space mail level is:

Confluence space mail is unable to read or process the email body. Example:

Subject: Documentation From: "Hanis" <hanis@atlassian.com> Date: February 03, 2013 12:49 javax.mail.util.SharedByteArrayInputStream@73bf9b0e ---> this is the body email.

Cause

activation-x.x.x.jar and mail-x.x.x.jar from /confluence/WEB-INF/lib were not moved over to <confluence-install>/lib (Tomcat 6)

Resolution

Ensure that both activation-x.x.x.jar and mail-x.x.x.jar from /confluence/WEB-INF/lib have been moved (but not copy) to <confluence-install>/lib (Tomcat 6)

ℹ️ You may also refer here: http://www.jguru.com/faq/view.jsp?EID=237257

Updated on April 24, 2025

Still need help?

The Atlassian Community is here for you.