Receiver Mail Adapter - Body and Attachment

Hello All,
Based on the document How to Use the Mail Adapter of the XI 3.0 J2EE Adapter Engine section 3.2.4 says that the payload of the message is sent as the body and an attachment when the Keep Attachments checkbox is configured. By default, the payload of the message is also sent as an attachment.
In testing this feature - if it is checked I get the attachment - if it is not checked I get the payload in the body of the email.  I do not get both.
I am using an xslt mapping.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:ns0="urn:sap-com:document:sap:rfc:functions" xmlns:ns="http://sap.com/xi/XI/Mail/30">
     <xsl:output method="xml" encoding="utf-8" indent="no" omit-xml-declaration="yes"/>
     <xsl:template match="/">
          <xsl:apply-templates select="ORDERS02"/>
     </xsl:template>
     <xsl:template match="ORDERS02">
          <ns:Mail>
               <Subject>
                    <xsl:text>Sample Purchase Order: </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
               </Subject>
               <From>
                    <xsl:text>mail@Com</xsl:text>
               </From>
               <To>
                    <xsl:text>mail@com</xsl:text>
               </To>
               <Content_Type>text/plain; charset="ISO-8859-1"</Content_Type>
               <Content_Disposition>attachment; filename="order.dc"</Content_Disposition>
               <Content>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>A </xsl:text>
                    <xsl:text>ORD 238            </xsl:text>
                                        <xsl:text>
</xsl:text>
                    <xsl:apply-templates select="IDOC/E1EDP01"/>
                    <xsl:text> </xsl:text>
               </Content>
          </ns:Mail>
     </xsl:template>
     <xsl:template match="IDOC/E1EDP01">
          <xsl:value-of select="concat(' ',/ORDERS02/IDOC/E1EDK01/BELNR)"/>
          <xsl:text>Z</xsl:text>
          <xsl:value-of select="substring(concat(E1EDP19[QUALF=002]/IDTNR,'       '),1,7)"/>
          <xsl:value-of select="format-number(number(MENGE),'00000')"/>
          <xsl:text>                </xsl:text>
          <xsl:text>
</xsl:text>
     </xsl:template>
</xsl:stylesheet>

Thank you so much for your patience.  The mapping works if I do not use the extra content_type tags.  Do I need to include the Mime-Version: 1.0....also, notice the
  <Content_Type>multipart/mixed; boundary="b1"</Content_Type>
Versus
<Content>--b12 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My Order --b1
Your example shows use of  Content-Type - and the XSLT sample shows <Content_Type> Do you know what the correct format is to use?.
I changed my xsl per your instructions.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
     <xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
     <xsl:template match="/">
          <xsl:apply-templates select="ORDERS02"/>
     </xsl:template>
     <xsl:template match="ORDERS02">
          <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
               <Subject>
                    <xsl:text>Purchase Order: </xsl:text>
               </Subject>
               <From>
                    <xsl:text>mail@com</xsl:text>
               </From>
               <To>
                    <xsl:text>mail@com</xsl:text>
               </To>
               <Content_Type>
                    <xsl:text>multipart/mixed; boundary="b1"</xsl:text>
               </Content_Type>
               <Content><xsl:text>--b12
</xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>Content-Type: text/plain; charset=us-ascii </xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>Content-Transfer-Encoding: 7bit </xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>My Order</xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>--b1</xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>Content-Type: text/plain; charset=us-ascii</xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>Content-Transfer-Encoding: 7bit</xsl:text>
               <xsl:text>
</xsl:text>
               <xsl:text>Content-Disposition: attachment; filename="order.dc"</xsl:text>
               <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>A </xsl:text>
                    <xsl:text>ORD 238            </xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>B</xsl:text>
                    <xsl:text>The Wolf Organization        </xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>C</xsl:text>
                    <xsl:text>PO Box 2044                  </xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:text>D</xsl:text>
                    <xsl:text>York, PA  17404-2044         </xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>E</xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>F</xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                    <xsl:text>G</xsl:text>
                    <xsl:text>
</xsl:text>
                    <xsl:apply-templates select="IDOC/E1EDP01"/>
                    <xsl:text> </xsl:text>
               </Content>
               <xsl:text>--b1--</xsl:text>
          </ns:Mail>
     </xsl:template>
     <xsl:template match="IDOC/E1EDP01">
          <xsl:text>Z</xsl:text>
          <xsl:text>                </xsl:text>
          <xsl:text>
</xsl:text>
     </xsl:template>
</xsl:stylesheet>
Now my results look like this:
- <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
  <Subject>Purchase Order:</Subject>
  <From>mail@com</From>
  <To>mail@com</To>
  <Content_Type>multipart/mixed; boundary="b1"</Content_Type>
  <Content>--b12 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My Order --b1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="order.dc" 4500000185A ORD 238 4500000185BThe Wolf Organization 4500000185CPO Box 2044 DYork, PA 17404-2044 4500000185E 4500000185F 4500000185G Z Z</Content>
  --b1--
  </ns:Mail>
And the error is still:
Following error occurred while executing the application:
  java.lang.IllegalArgumentException: can't parse argument number http://sap.com/xi/XI/Mail/30
Display Stack Trace
Stack trace for the above error message is:
java.lang.IllegalArgumentException: can't parse argument number http://sap.com/xi/XI/Mail/30
     at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
     at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
     at java.text.MessageFormat.(MessageFormat.java:347)
     at java.text.MessageFormat.format(MessageFormat.java:800)
     at jsp_auditlog1160053386093._jspService(jsp_auditlog1160053386093.java:274)
     at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
     at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
     at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
     at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
     at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
     at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Similar Messages

  • Dynamic attachment name in receiver mail adapter for 1 attachment?

    Hi,
    seems to be a tricky thing....
    The sender interface (file) picks up an xml file and a pdf document.
    The receiver wants to get the xml file as a txt file and the pdf, both sent together by mail.
    We are following this thread:
    "Sending multiple attachments winthin a single Receiver Mail adapter in required format".
    So far we are able to generate the txt file and send it together with the pdf to the recipient.
    The txt file gets its name from the payload of the xml file.
    Unfortunately the pdf should be renamed to the same name as the txt file.
    And here we are stuck.
    We generate the filename for the txt file in the mapping to the mail message (as usual ximail30.xsd).
    But for the pdf we are only able to set a static name in the channel module page using
    Transform.ContentDisposition.
    Any ideas how to solve this are really welcome!!!!
    (Solutions that do not talk about using a new module to be written are prefered.)
    Regards
    Dirk

    Hi,
    seems to be a tricky thing....
    The sender interface (file) picks up an xml file and a pdf document.
    The receiver wants to get the xml file as a txt file and the pdf, both sent together by mail.
    We are following this thread:
    "Sending multiple attachments winthin a single Receiver Mail adapter in required format".
    So far we are able to generate the txt file and send it together with the pdf to the recipient.
    The txt file gets its name from the payload of the xml file.
    Unfortunately the pdf should be renamed to the same name as the txt file.
    And here we are stuck.
    We generate the filename for the txt file in the mapping to the mail message (as usual ximail30.xsd).
    But for the pdf we are only able to set a static name in the channel module page using
    Transform.ContentDisposition.
    Any ideas how to solve this are really welcome!!!!
    (Solutions that do not talk about using a new module to be written are prefered.)
    Regards
    Dirk

  • Receiver Mail adapter with txt attachment

    I'm having a requirement to transfer Text fiels as-is to email as an attachment.
    With the study as of now I came to know that if I use mail adapter I can get my payload as XML attachment.
    Can we get text file as attachment instead of XML file in E-Mail?

    hi das
    check the below blogs
    eMail Report as Attachment (Excel/Word)
    eMail Report as Attachment (Excel/Word)
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    regards
    kummari

  • Abou Receiver Mail Adapter?

    Hi All,
    Iam doing File to Mail Senario,where in mail i have to send an Attachement..........i have done it successfully iam geting the Attachment in Mail.........but my Client requirement is he need the Body and Attachment.......iam tring this but iam not geting ..............can Any one helpin this issue.
    I need attachment and as well as Body in the mail.
    Regards,
    Phani
    Note Points will be rewarded 

    You can use the MailPackage.xsd for it. It is a structure that allows you to build your email using an XML file that describes the header and body parts of an email.
    And if you have a look at a mime-object (f.ex. by opening a Thunderbird or PINE inbox in a text editor), you should see how mails with body and attachment are formed.
    These are multipart MIME messages.
    And if you wrap your content into the same shape (i.e. you declare a multipart message in the <content>-tag of the mailpackage.xsd), the emailadapter will build an email with both body and attachment if you select "use mailpackage".
    Cheers!
    Stefan

  • Excel file(.xls) as attachment and Body(Signature) via Receiver Mail Adapter

    Hi PI Experts,
    I have a requirement File(.txt) - PI(7.4) - mail (.xls attachment and signature in the body). Can anyone pls help me with the best approach to send excel file as mail attachment and signature in the body.
    Thanks,
    Sri

    Hi
    You can try this approach
    1. use mail package and java mapping to populate the mail package.
    inside the java mapping do the following
    a. read the text file and convert it to excel and then set it as additional attachment.
    b. map the signature and body with the field 'content' of mail package.
    2. on the receiver mail adapter check both mail package and keep attachment options.
    Hopefully this will work.
    Reference links
    excel write : Excel and Java - Read and Write Excel with Java - Tutorial
    set attachment: How to save MainDocument as additonal attachment in sender channel?

  • 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

  • Receiver Mail Adapter - Mail body as attachment

    Hello friends,
    I have scenario = File -> XI  -> Mail
    The scenario is working but the problem is body of the email is coming as attachment in the mail client.(outlook express)
    Is there any way to avoid the body coming as attachment.
    Regards
    Ramesh P

    Hi Ramesh,
    You can use the MessageTransformBean in the receiver mail adapter for this.
    Refer this for the parameters which you can use
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    Regards,
    Chandra

  • 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

  • Receiver Mail Adapter - Avoid attachment

    Hello
    Could anyone please let me know, how to prevent a mail attachment with a Receiver Mail Adapter. I have chosen XIPAYLOAD as Message Protocol. When the mail is received there is no mail body, instead only the attachment contains the message.
    Thanks
    John Jeyaraj

    Hi,
    Use Mail XSD as target structure in your mapping and enable use Mail package in your receiver channel...
    for avoiding attachments..
    HTH
    Rajesh

  • In Receiver Mail Adapter ,how to ignore SOAP Header attachment

    HI Folks,
    Am using Receiver Mail Adapter and am getting 2 attachments.
    1. one is Soap header which contains Control records
    2. payload
    I want only Payload as attachment and need to ignore SOAP Header(AT00001.xml).
    The configuration is as below:-Trasport protocol : SMTP
                                                Message Protocol: XIALL
    Please provide Inputs.
    Thanks & Regards
    Ashok Reddy

    Hi Gagandeep,
    Scenario: File------>mail( Bypass scenario)
    i had posted file in FTP and am getting attachment properly but aditionally am getting ATT00001.xml as SoapHeader.this i need to ignore.
    PFB Module Parametrs i used:
    localejbs/AF_Modules/MessageTransformBean   LocalEnterpriseBean    transform
    Modulekey                      Parameterattribute                        value
    transform                      Transform.ContentDisposition            attachment;filename=”Pocr_860.txt”
    transform                     Tansform.ContentType                       text/plain
    Regards
    Ashok

  • Receiver mail adapter - Payload as a Text attachment

    Hi,
    In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file)
    when i send payload, currently i am receiving as a XML file.
    I try to follow like Rushikesh Deshmukh XI thread: Text Attachment in Mail Adapter  in XI forum(topic)
    I have having following config
    Processing Sequence
    localejbs/CreateAttachment Local Enterprise Bean XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    Module Configuration
    XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
    XML2Plain Transform.ContentType text/plain;charset=utf-8
    XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
    XML2Plain xml.addHeaderLine 0
    XML2Plain xml.conversionType StructXML2Plain
    XML2Plain xml.recordsetStructure Header1000,Header2000
    Please suggest some solution."
    Could you tell me exactly where i need to do all these setting and
    do i need import localejbs/CreateAttachment Local Enterprise Bean XML2Plain...I mean shall i add same in my processing sequence
    give in detail ? (in Receiver mail adapter Communication channel,  advanced mode additional parameters)
    I tried to follow this also
    http://help.sap.com/saphelp_nw04/helpdata/EN/4e/c153426da9bd30e10000000a155106/frameset.htm
    but i could not find much info on this help.sap.com reg. req.
    Thanks
    Prabaharan

    Hi
    f i create like this Receiver CC (module Tab)
    number: 1
    Module Name: localejbs/CreateAttachment
    Module Type: Local Enterprise Bean
    Module Key: mail
    is it enough? do i need any other setting like this
    Did you deployed CreateAttachment on PI server. As this is not a standard SAP module this is a custom module?
    mail as module key is already used by XIMAILAdapterBean use some other key for CreateAttachment
    Settings are fine for the Module
    Processing Sequence
    localejbs/CreateAttachment Local Enterprise Bean XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    Module Configuration
    XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
    In this:
    Module Key: XML2Plain
    Parameter Name: Transform.Class
    Parameter Value: com.sap.aii.messaging.adapter.Conversion
    is it right?
    Processing sequence is fine
    XML2Plain Transform.ContentType text/plain;charset=utf-8
    XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
    XML2Plain xml.addHeaderLine 0
    XML2Plain xml.conversionType StructXML2Plain
    XML2Plain xml.recordsetStructure Header1000,Header2000
    can i anyone explain how to these settings?
    Is this key valid to provide inputs to the module check with the code for this module
    This looks like valid for MessageTransformBean ro StrictXMLtoPlainBean
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 15, 2008 5:34 AM

  • Receiver Mail Adapter, Mail Package with Payload as Attachment

    Hi Everyone,
    I have spent the better part of the day today searching and testing all of the different combinations that I could think of to solve this problem, so please don't just do an SDN search for me and cut/paste in the links as there are too many contradictive answers piling up over the last year.
    I am trying to use a Receiver mail adapter to send some data using the mail package, and I want to have the <content> tag be in an attachment.  I am using mail package to dynamically set the mail address, but to also try and turn my data into a csv file that the recipient can open in Excel.
    My mail package sets the following values:
    <Content_Type>text/plain</Content_Type>
    <Content_Disposition>attachment</Content_Disposition>
    <Content>Sample Text</Content>
    This blog is basically what I am trying to do: 
    <a href="/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword:///people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    But no where in here is he setting ContentDisposition, and he is (potentially) not using the MessageTransformBean module.
    It is unclear if I need to use the MessageTransformBean to make this work? 
    Questions:
    1) Do I need to use the MessageTransformBean?
    2) Do I need to set the ContentDisposition in the mail package?
    3) Does Service Pack matter with these settings?  We are on SP15 upgrading to SP18 very soon.
    Thanks
    Peter

    Hi Peter,
    try:
    <Content_Type>text/plain;name="file.csv"</Content_Type>
    <Content_Disposition>attachment;filename="file.csv"</Content_Disposition>
    <Content>Sample Text</Content>
    Regards
    Stefan

  • Swapping attachment to content on Receiver Mail Adapter

    Hi Experts,
    Can I move my attachment data to content on receiver mail adapter ? I am not using Mail package or mapping. I tried using Payloadswapbean on receiver adapter but adapter generated email with attachment only with and without Payload swap bean module.
    Please let me know if it is possible without using Mail Package.
    Thanks,
    Ankit

    Hi there,
    If you want to use attachment in content, then you need to collect the entire mail content in BPM. From there you can use Payloadswap bean on receiver adapter.
    The reason behind using BPM is that the attachment is maintained only in Integration Directory. First the mapping converts the source into mail and then just before moving to receiver the attachment gets added to the mail(i.e. after mapping). So if a BPM is used then all the mail content with attachment will get transported to BPM first and then to the receiver with the above change (Payloadswap bean i.e transferring the attachment to content).
    Best Regards,
    Souvik

  • Body and Attachment both in a mail

    Hi,
    I am working to send a mail from XI. My present scenarion is like this: I am using xslt mapping to generate code for a html page using source and using dumy target. Now I am using module adapter "localejbs/AF_Modules/MessageTransformBean" for getting attachments. I am able to get the attachment if i check "Keep Attachment" check box or else I am able to see the html pagein body of mail.
    Here I am getting either body or attchment. Is there any way to get both body and attachment?
    Thanks.

    I am not using any adapter module method,
    I am trying to use these statements:
    <b>3.2.4 Sending a Mail with Attachment</b>
    If you want to send a mail with a body and attachment, or with several attachments, the
    message sender has to provide an XI message with additional attachments. For each
    additional payload of the XI message, the mail adapter creates an attachment for the
    mail. To enable this feature, you select the Keep Attachments checkbox when
    configuring the mail adapter. By default, the payload of the message is also sent as an
    -8-
    attachment. If you do not want the payload to be sent as an attachment, set
    ContentDisposition to inline.
    If you want to give each attachment a certain name, you can use the swap module. The
    swap module changes the main payload.
    -- This is not talking about any methods to be implemented.
    Thanks,

  • Dynamic file name of the attachment in receiver mail adapter

    Hi
    I have configured a receiver mail adapter which receives the payload as an xml attachment.
    Right now the file name of the attachment is hardcoded to "invoice.xml".
    I want to set it to dynamic ie. instead of "invoice.xml"... i want it as "invoice<invoicenumber>.xml".
    Invoice number is present in the payload.
    please suggest a solution w/o the need to develop a custom adapter module.
    Thanks!
    Regards,
    Faria Mithani

    Hi,
    Go through this thread..
    Dynamic  File Name for Receiver File Adapter
    Regards,
    Sarvesh

Maybe you are looking for

  • Oracle Object Table Type

    I have an application that I would like to map bc4j to a object type hierarchy in the database. From reading previous otn threads I'm under the impression that Domains are not used for Oracle Table Types, just for columns based on oracle types. The t

  • Phone recognized, but no connection available.

    I am using Windows 2003 and PC Suite 7.1.60.0 and BT connection. When I boot Windows and start PC Suite it recognizes my phone just fine. Then when I move the phone away from the PC the BT connection breaks - and when I return the phone does not reco

  • My Iphone 4 turned off and won't turn back on! Help!

    I was playing a game on my Iphone 4 and all of sudden the phone turned off and now I can not get it to turn back on.  The battery was fully charged 15 minutes before I started the game.  any suggestions on what I should do?

  • How to change my debitcard detail...

    how to change my debitcard detail...

  • TS2755 can't send pictures on iphone 4s

    I can't send pictures on iphone 4s