[ 
https://issues.apache.org/jira/browse/TOMEE-4547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18035073#comment-18035073
 ] 

Richard Zowalla commented on TOMEE-4547:
----------------------------------------

TomEE is shipped with Geronimo Javamail. So I wouldn't ship it with the app 
itself.

Did you try to replace the Geronimo Mail libs in /lib with Eclipse Angus?

> 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
>            Priority: Major
>              Labels: geronimo, jakarta, mail, multipart
>
> 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)

Reply via email to