Mail adapter issue with mail attachment

Hi all,
I have a scenario mail to file and i have a problem.
Is it possible, in a sender adapter mail to use the option keep attachment and mail package at the same time ?
So,is it possible to use the module payloadswapbean and XMLanonymizer in a sender adapter mail in order to suppress a namespace from the attachment in it ?
Is the option mail package useful if i am using payloadswapbean module ?
from what i see, It seems that the XMLanonymizer doesn't work for sender mail adapter with attachment. I've tested the configuration on a sender adapter file and works fine.
Anyone already tested it ?
Thanks,
Jean-Philippe
Edited by: Jean-Philippe PAIN on Feb 9, 2010 5:29 PM

Hi Stefen,
Thanks for the answers.
The question is, whether the payloadswapbean is useful at all in a sender mail scenario.
I don't understand this one ! Isn't mandatory in sender adapter mail scenario if you want to read your mail attachment ?
Yes. If you configure the payloadswapbean correct, the XMLanonymizer works on the attachment.
It is not easy to set the payloadswapbean in a correct way. IPost your parameters here, when it does not work for you.
Ok. Maybe my configuration is wrong, please tell.
Processing sequence :
localejbs/AF_Modules/PayloadSwapBean => 0
localejbs/AF_Modules/XMLAnonymizerBean => 1
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean =>mail
module configuration :
swap.keyName =>Content-Disposition
swap.keyName => Content-Description
swap.keyValue=>MailAttachment-1
swap.keyValue=>attachment;filename="MailAttachment-1.xml"
anonymizer.acceptNamespaces =>http://namespace ''
anonymizer.quote => ''
I am on PI 7.1 version and when i am looking in the monitoring(sxmb_moni), it doesn't seems working.
Thanks,
Jean-Philippe
Edited by: Jean-Philippe PAIN on Feb 10, 2010 10:36 AM

Similar Messages

  • Receiver Mail Adapter message with PDF attachment

    Hi.
    We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">
       <Sender/>
       <Receiver/>
       <BodyContent/>
       <Subject/>
       <Attachment/>
    </ns0:newMailRequest_MT>
    I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.
    So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.
    I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??
    What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??

    hi
    I have used the following links to send the file as an attachement and as payload.
    so it may help u.
    links:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment
    Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    points if helpful.
    regards
    sreeni

  • Mail Adapter: Working with mail packages

    Hi All
    I am having a receiver mail adapter.
    I am using mail package to send data as a text file attachment.I am getting the following error:
    failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found TM_Mail at state 1
    How can i override my current namespace with the recomended namespace 'http://sap.com/xi/XI/Mail/30}Mail'??
    Thanks
    Chandra

    I am trying to use the mail package as well and no e-mail delivered.  However,  when I do not use the mail package an use mail attribute and remove the code below it works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30"> 
    <subject>824 test</subject>
    <from>edi/@/na.modine.com</from>
    <to>s.m.posnanski/@/na.modine.com</to>
    <reply_to>edi_support/@/na.modine.com</reply_to>
    <content_Type>text/plain</content_Type>
    <content>
    Hello
    </content>
    </ns:Mail>
    Can some provide the settings that are needed in the Module tab when using the "Mail Package" option??

  • Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

  • Mail Adapter Issue

    Dear All,
    I am facing a problem in my Scenario . I have configured sender mail adapter and the mail gets picked from the Mail Box.
    But the problem is in the content field i get something like '=20'. I analysed it and checked that whenever a space or a enter key is pressed when writing a mail then in XI it gets converted to =20.
    The problem is when the data goes to target system CRM it goes as =20.
    Can anyone let me know how can we take care of the same.The problem is with the Content field which gives characters =20 .
    Format as below
    <xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30">
      <Subject>test</Subject>
      <From>test123@test</From>
      <To>test12233</To>
      <Content_Type>text/plain;charset="us-ascii"</Content_Type>
      <Date>2008-09-22T09:47:40Z</Date>
      <Message_ID></Message_ID>
      <Content>=20Dear CRM team=20=20Please find below mails kindly check =20Regardsxyz=20=20.</Content>
      </xim:Mail>

    Hi! Amit,
    This is Amar Srinivas Eli. Give me your E Mail ID so that I will send you one document regarding FIle To Mail Scenario Adapter which I did a test scenario successfully and also I hope it will be useful to you.
    Also please make sure as
    Transfer Protocol     SMTP
    Message Protocol    XI PAYLOAD
    Also select the option in radio button as Keep Attachments
    Regards
    Amar Srinivas Eli...
    Note:  Kindly  POints if useful....

  • OS X 10.10.1 Apple Mail reliability issue with Virgin Mail Servers

    Apple Mail(8.1) reliability issue with Virgin Mail Servers on my iMac and Laptop Pro with the new Yosemite update!  Spent 1.5hrs with the virgin team (thought we solved it by changing from Auto to one minute update) only to find on return I still have an issue with Mail!  On the iMac the account opens and I see all the mail arriving. When I switch over and the back, days of recent mail have disappeared?
    If I search for one I saw, It is found?
    On the Laptop Pro, its similar, but it also has a problem remembering the outgoing port no matter how often I save it keeps going back to port 143 and this makes the send fail each time?
    Will I have to move to another mail client or is their a fix coming?

    The last version of Mail for Tiger is v2.1.3 & there won't be any updates/upgrades.
    You might try the freeware mail app Thunderbird. http://www.mozillamessaging.com/en-US/thunderbird/ It's newer than Mail for Tiger.
    How Thunderbird 3 works on Mac OS X: Better than Apple Mail?
    http://blogs.techrepublic.com.com/mac/?p=409
     Cheers, Tom

  • TS3276 I have issues with mail unexpectedly quitting, any suggestions?

    Has anyone ever had issues with mail and/or Safari "unexpectedly quitting" repeatedly and the only thing that seems to temporarily fix it is to restart the computer?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • Serious issues with Mail

    Mail crashes the moment i click on it. Anyone got any ideas as to why this happens?

    mine does the same, the moment i open open up mail the pinwheel won't stop spinning, and i tried the utility disk repair but still the pinwheel spins upon starting the program-- any luck to fix this serious issue with Mail? thank you.

  • Sender Mail adapter get no mails

    Hello,
    we are using the sender mail adapter to receive mails (IDOCS) from a Exchange server.
    A few days it works, but suddenly no mails are received.
    But in RWB the mail adapter status is green and shows, that there are no new mails. But when I check the mail box with OUTLOOK, there are some mails.
    When I deactivate and activate the mail adapter, all mails are read then.
    Pollinterval: 1 minute
    XI: SP10
    Who can help me are had s similar problem?
    Or is it possible to stop/start the mail adapter (or the adapter engine) automaitcally (more like a workarround)
    best regards
    Werner Magerl

    Hi All,
    I chekced your responses and tried accordingly. Our basis team has given me new link now and the error message has changed. I am getting following error message.
    exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state.
    Does anyone have any idea what this error is?
    Thanks in advance,
    Devendra

  • Issue with reading attachment in sender mail adapter

    Hi, I am working on Email to file scenario, where I have to connect to exchange server and take the attachment of the email (xml file) and save it on to PI server. I have configured sender mail communication channel with following details:
    Protocol: POP3
    Message protocol: XIPAYLOAD
    Mail attributes: keep attachments
    Module:
    1     localejbs/AF_Modules/PayloadSwapBean     Local Enterprise Bean     1
    2     localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    1     swap.keyName     Content-Description
    1     swap.keyName     Content-Description
    1     swap.keyValue     attachment,filename="MailAttachment-1.xml"
    1     swap.keyValue     MailAttachment-1
    Also, configured receiver file adapter.
    Since I donu2019t have to read mail content , I havenu2019t created any design components in ESR. I have just refrred to dummy namespace, interface (both sender and receiver). in receiver determination, interface determination, sender agreement and receiver agreements.
    It was working fine, not sure what changes happened. Now I could see the attachment payload in message monitor.
    Under Inbound message->payloads->
    MailMessage ( text/xml;charset=utf-8 )
    MailAttachment-1 ( text/xml;name="****************")
    But the fille that is getting created doesnu2019t have the contents of the attachment (xml file) .  It has some other information, shown below:
    Directory:  ******
    Name:       ********.xml
          =NextPart_002_01CB2C5B.B033B325#
    content-type:text/plain;charset="us-ascii"#
    content-length:30#
    content-transfer-encoding:quoted-printable#
    <<**********.xml>>=20#
          =NextPart_002_01CB2C5B.B033B325#
    content-type:text/html;charset="us-ascii"#
    content-length:#
    content-transfer-encoding:quoted-printable#
          =NextPart_002_01CB2C5B.B033B325  #
    Can you please let me know what is going wrong here.

    using following parameters in module resolved my problem:
    MOdule name                                                                           Type                                                            Module Key
    AF_Modules/PayloadSwapBean                                            Local Enterprise Bean                                      transform sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean                                      mail
    Module Key                                    Parameter Name                              Parameter value
    transform                                        swap.keyName                                Payload-Name
    transform                                        swap.keyName                                 MailAttachment-1

  • Dynamic attachment name with receiver mail adapter and use mail package

    We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
    I could probably do this using the adapter module (as per the following link),
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • Sender Mail adapter configuration with attachment

    Hi,
    I read the below blog regarding the mail adapter
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is it enough?
    TRANSFORM    swap.keyValue  attachment; filename=u201DMailAttachment-1.csvu201D     (I think MailAttachment-1 is the file name, am I correct?)
    If I change like above is it ok? or any other thing is required, Could you please give me the inputs
    Thanks
    Ramesh

    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is
    it enough?
    PayloadSwapBean will ensure that the input to the mapping is from the attachment.....in the blog the attachment is in XML format and hence there was no need for any conversion.....yours is however a CSV file so you need to convert it to XML first and then do the further processing.....you can either use the MessageTransformationBean as shown in this blog:
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/08/31/solve-key-field-problem-using-structplain2xml-in-messagetransformationbean
    Or write your own module code for the conversion.
    Regards,
    Abhishek.

  • Issue with Mail Adapter ?

    Hi,
    I am Navneeth, working on Sender mail adapter.
    We are working on PI 7.1.1 version. We are unable to see the following parameters in the sender Mail adapter:-
    (1) Default Interface Namespace (2) Default Interface Name.
    Is it mandatory to maintain the above mentioned parameters?
    Also, we are getting a Nullpointer exeception in RWB.
    Kindly provide your suggestions.
    Thanks & Regards,
    Navneeth K.

    These 2 parameters are no longer required in the new PI version. You already provide these in the sender agreement. There could be some other reason for nullPointer. I tested mail sender today with PI 7.11 and it is working as expected.
    Regards,
    Prateek

  • XI Mail Adapter: Sending an XML attachment

    Hi
    I want to send an xml attachment using the XI Mail adapter. I have configured the adapter correctly and am currently receiving the email message.
    My issue is that my attachment has a .txt extention and I want it to have a .xml extn.
    I have seen a variety of web blogs around but none of these have helped.
    I have also changed my configuration from XIPAYLOAD to XIALL and still cannot get my payload message as a .xml attachment.
    When I config my adapter to use XIALL i get 2 attachments, a SOAP.xml and the my payload wiht the filename:
    [email protected]
    When I use XIPAYLOAD, with the keep attachment option ticked, I get an attachment with a .txt extn.
    I am convinced there must be a J2EE setting or maybe a ABAP config paramter that I need to update to get the .xml extn.
    Any help is greatly appreciated.
    Regards
    Yackeen

    Hi Yackeen,
    You can use localejbs/AF_Modules/MessageTransformBean
    You have to set the parameter :
    Transform.ContentDisposition as  
    attachment;filename=”myFileName.xml”>
    Best regards,
    Bela

  • Sender mail adapter - filter emails by attachment?

    Dear experts,
    I have a sender mail adapter that picks an XSL (EXCEL) attachment from an incoming email and converts it (with a custom adapter module) to XML.
    But now how can I make the adapter only process emails with XLS - attachments? In that Inbox I also have emails with HTML-attachments for example. And now my adapter also wants to process those messages.
    In my adapter module that makes XLS to XML I see an exception in RWB but the message still gets through to SXMB_MONI where it gets stuck with a red flag.
    Can I somehow tell the adapter to only process emails with XLS attachments?
    Or can I stop the processing in the adapter module that converts XLS to XML?
    Thank you for any input or ideas on this!
    Best regards,
    Peter
    PS: I am using this code to convert XLS to XML:
    http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns

    Hello ChizzT,
    Thank you for your idea. I went with this one and it worked.
    Best regards,
    Peter

Maybe you are looking for

  • Iphoto book in portugal

    I want to order an iphoto book in portugal. how can i do it? if it isn't possible yet, when is going to be available? thanks ESPIRITO

  • MAP goes zero

    Hello, I have an issue with consignment material. Some times the MAP value in MM changes to zero, If I understand correctly MAP value only changes if we do GR.But since I have consignment PO and when we do GR there is no accounting document and no wa

  • [SOLVED] Remap joystick/pad buttons

    Hi Is there a way to rema my pad buttons? I own a logitech pad, and when running some games through wine, since most of today games are xbox ports, my buttons are messed. I mean, xbox has the following layout: x y a b my pad 1 4 2 3 and -at least thr

  • UCMON - Currency translation problem

    Hi I'm new to use UCMON tcode, here I need to debug Currency Translation for Consolidatin Area 'SH' Version '100' Group Currency 'GBP', Period '1/2010'. In context menu of Currency translation if i give Test it is giving dump. The dump says that "GET

  • Where do I enter my redemption code to get my serial#    ??????

    where do I enter my redemption code to get my serial number??? went to the getserial webpage but there is no place there to enter it ???? why is this so user unfriendly ????