cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read mail attachment for making it to the payload?

Former Member
0 Kudos

Hi everybody,

in the following my scenario:

I have an incoming message with attachment by the mail sender adapter using PayloadSwapBean (because of other messages I have to use the bean). I want to send this attachment by using the mail receiver adapter to fix E-mail-address keeping the FromMailAddress, the MailSubject and the FileName

without the metadata as additional attachment.

I have found a thread where it is explained how to handle "payload as mail attachment and dynamic filename" by java-mapping. So far so good. My question is: How can I make my attachment to be the payload? How can I read the attachment by java-mapping?

Thanks for help.

Reagrds,

Sebastian Linke

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Stefan,

thanks for your answer. Does it mean that I have to develop my own modul? I can't see similarities between your link and my task.

I thought I can develop a java-mapping which I deposit in my interface-mapping.

Regards,

Sebastian

stefan_grube
Active Contributor
0 Kudos

The filename of the mail attachment is lost betweeen Mail adapter and Integration Server, so you cannot access this in Java Mapping.

Regards

Stefan

stefan_grube
Active Contributor
0 Kudos

Watch this thread:

Former Member
0 Kudos

USe payloadSwapBean for this to swap your payload and attachment

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

Rajesh

Edited by: Rajesh on Feb 5, 2009 5:29 PM