Seven Stars

Can't send emails with attachements in a route

Hi

We use Talend Open ESB 6.3 for routing emails from input mailboxes to output mailboxes.

We wrote some java pieces of code to handle attachements of the incoming mails as map in the exchange object then create the multipart/mixed object to send the final mail.

 

This works fine when we run the route in the Talend Studio, but we get an issue when running it into karaf container : the final mail only contains "javax.mail.internet.MimeMultipart@156bf203" in the body and it misses the orignal body and the attachements.

 

We've tried with cMail component or even with smtp:// in cMessagingEndpoint or cJavaDSLProcessor.

 

There is no issue in karaf if no attachement in the mail.

 

What is the best way to manager attachements in routes ?

 

Thanks

Arnaud

3 REPLIES
Moderator

Re: Can't send emails with attachements in a route

Hi,

Does this issue also repro on other build version(V 6.4)?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Seven Stars

Re: Can't send emails with attachements in a route

Hi Sabrina

 

Yes it reproduces in 6.4

Five Stars

Re: Can't send emails with attachements in a route

I am struggling with the same issue.  Did you find a solution?