Skip to Content
avatar image
Former Member

Query related to Email adapter

Hi,

I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.

My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.

My query is is related to Standard module processors sequence.

For 3 files in mail attachments(.xml , pdf & .txt) what should be the module processors sequence in receiver email adapter?

Currently I am using the following module processors sequence

1 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2

2 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swap

3 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1

4 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail

swap -> swap.keyName -> payload-name

swap > swap.keyValue > file1

trans1 > Transform.ContentDescription >file1

trans1 > Transform.ContentDisposition >attachment

trans1 > Transform.ContentType >application/pdf;name="file1.pdf"

trans2 >Transform.ContentDescription >file1

trans2 >Transform.ContentDescription >inline

Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt) should go as an attachments in the reciever email adapter.

Thanks & Regards

Prabhat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 20, 2010 at 02:59 AM

    Hi,

    Can anybody reply to my query, I am eagerly waiting for the solution

    Any correct answer to this will be appreciated

    Thanks & Regards

    Prabhat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2010 at 02:27 AM

    it would be something like this, Try this

    1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt

    2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3

    3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml

    4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2

    5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf

    6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1

    7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail

    swapxml -> swap.keyName -> payload-name

    swapxml > swap.keyValue > file2

    swappdf -> swap.keyName -> payload-name

    swappdf > swap.keyValue > file1

    trans1 > Transform.ContentDescription >file1

    trans1 > Transform.ContentDisposition >attachment

    trans1 > Transform.ContentType >application/pdf;name="file1.pdf"

    trans2 >Transform.ContentDescription >file2

    trans2 >Transform.ContentDisposition >attachment

    trans2 > Transform.ContentType >application/xml;name="file2.xml"

    trans3 > Transform.ContentDescription >file3

    trans3 > Transform.ContentDisposition >attachment

    trans3 > Transform.ContentType >application/txt;name="file3.txt"

    mail --> mime.contenttype --> multipart/mixed

    I have not tried this myself. but it should work

    Add comment
    10|10000 characters needed characters exceeded