Skip to Content
Former Member
Jan 04, 2008 at 12:07 PM

receive an email attachment and process it


Hello all,

could you please explain me, how can I process an email attachment, that comes into XI? My scenario is follows: I receive a mail with attachment into XI, search in attachment to which email this message should be forward and forward the modified message to receiver.

I' ve done successful the similar scenario with java mapping, where an incoming IDOC was parsed and mapped to mail message with attachment. Outgoing mail structure was in this case follows:

<?xml version="1.0"; encoding="UTF-8"?>">




<Content_Type>multipart/mixed; boundary="--AaZz"</Content_Type>


Content-Type: text/plain; charset=UTF-8

Content-Disposition: inline

Confirm with attachment.


Content-Type: application/xml;


Content-Disposition: attachment;


<?xml version=&quota;1.0&;quot; encoding="UTF-8>


Now I try to repeat this, but I don't get such incoming structure from pipeline. I always see there two payloads: mailMessage and mailAttachment. Could anybody tell me, how have I to configure send channel to get such structure by receiving a mail into xi in xi payload? Is it possible? if no, than how can I handle with attachment of incoming mail message?

thanks in advance