You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jens Heitmann (Jira)" <ji...@apache.org> on 2025/11/03 14:03:00 UTC

[jira] [Created] (TOMEE-4547) MultipartMessage not build correctly with Jakarta.mail / Interferes with Geronimo-mail

Jens Heitmann created TOMEE-4547:
------------------------------------

             Summary: MultipartMessage not build correctly with Jakarta.mail / Interferes with Geronimo-mail
                 Key: TOMEE-4547
                 URL: https://issues.apache.org/jira/browse/TOMEE-4547
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Build
    Affects Versions: 10.1.2
         Environment: tomee-plume-10.1.2, java 17.
            Reporter: Jens Heitmann


Sending an multipart mail is not working with Jakarta-mail.

I've tried the following:

1. Jakarta-mail in web app/WEB-INF/lib
 * Sending a simple email is working well.
 * Using port 465 works.
 * building a multipart mail (like from the jakarta.mail examples site) results in an "empty body".

2. without Jakarta-mail in web app/WEB-INF/lib
 * Seems to build well the MimeMessage
 * Sending via 465 fails

I was not able to create a configuration, that handles both situations well. Even if commons-email2-jakarta is used, too.

I've tested the build of the message with:
{code:java}
mail.writeTo(output){code}
It seems to interfere with the jakarta mail implementation in the tomee/lib directory. The javax version of the project works well, with javax.mail & commons-mail

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)