Skip to Content
0
Former Member
Sep 22, 2008 at 11:42 AM

Mail_Receiver: Send Mail with attachment

38 Views

Hi everybody,

I need some help. I want to send a mail with attachment.

for this I have imported SAPs xsd for the mail adapter.

I wonder how to map the target fields?

The following causes five! attachments in SXMB_MONI and the adapter throws

java.lang.IllegalArgumentException: can't parse argument number

<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
   <ns0:Message1>
      <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
         <Subject>SubjctName</Subject>
         <From>mailadress</From>
         <To>mailadress</To>
         <Content_Type>text/plain; charset=&quot;ISO-8859-1&quot;</Content_Type>
         <Content_Description>
            <attachment filename="filename.txt">This should be the content of the attachment</attachment>
         </Content_Description>
         <Content>Constant</Content>
      </ns1:Mail>
   </ns0:Message1>
</ns0:Messages>

How do I have to foll the target fields?

Thanks regards

Mario