Can't send emails with attachements in a route

Eight 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

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.
Eight 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?

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch