File to mail adapter

hey guys
i m doing a file to Mail scenario in which i have to send mail in report format and assign the receivers dynamically,i m making use of /people/community.user/blog/2006/09/07/email-reporting to send mail in report format and /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address to assign receiver dynamically but m kinda lost in hoe should i combine these two scenarios,what will be the structure of my source and target message be?
can anyone help me in deciding how will my source and target datatypes look like?
thanx and really appreciate ur help
ahmad

Your structure is dependent upon the messages that you want to import and export.  What file formats are you trying to use?
If you are trying to follow Michal Krawczyk's Mail Adapter weblog then take a look at the XML message in his blog, it has fields <subject><to><from><content>.  It appears that he imported an Email structure from an XSD, but there is no reason you can't create that structure yourself in the IR.
As for the weblog by Prakash Arunachalam, he provides an XML structure in his weblog at the bottom I believe.
Message was edited by:
        Harrison Holland

Similar Messages

  • E-Mail reporting in file to mail adapter scenario

    Experts,
       I am working on a file to mail adapter in which, have to just send a mail to the recipient by  putting a subject line and mail body.
    am following the following example
    /people/community.user/blog/2006/09/07/email-reporting
    but my requirement is not to send the mail attachment. I just need to send a mail body stating the error location.
    here at teh receiver side, have downloaded a mail.xsd. in this "subject line","from field" , "to" field is there but there is no "mail body" field .
    Can any one please help me out. I just require to send a mail body to the recipient.
    Thanks
    Veeru

    Expert,
       I have used but still am getting teh attachment not as a mail body.
    Isit possible to send the mail body via XSLT mapping , for eg
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://perks.com/MailTest">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
       <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
        <Subject>Error files from XI</Subject>
        <From>from mail ID</From>
        <To>to mail id</To>
        <Content_Type>text/html</Content_Type>
        <Content>
         <xsl:text xsl:space="preserve">The error files for which service entry has not been created:</xsl:text>
         <xsl:value-of select="$break"/>
         <xsl:value-of select="$break"/>
         <xsl:value-of select="$tableB"/>
         <xsl:value-of select="$thB"/>
         <xsl:value-of select="$tdB"/>
         <xsl:text xsl:
        </Content>
       </ns1:Mail>
      </xsl:template>
    </xsl:stylesheet>
    Any suggestions?
    Thanks
    Veeru

  • Help Required on File to Mail Adapter scenario

    Hi all,
    Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
    Regards
    V.Kartik

    Hi Karthik,
         Also check these links on File to Mail adapter scenario:
        Blogs:
        /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
        /people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
        Sap File on Mail Adapter:
        https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
        Also check these similar threads:
        How to implement file to mail scenario
        What is the process for sending file thru email using Mail Adapter ???
    Regards,
    Subhasha Ranjan

  • File to Mail Adapter issue

    I am trying FILE-TO-MAIL ADAPTER senorio
    I have file contains following data(more than one row data in file)
    emailaddress,subject, content
    I used receiver Data type
    https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
    If text file is only one record it is sending mails as mail defininition is 1..1 in ximail30_xsd
    I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.
    I am getting validation error.
    please advice me.

    Hi,
    ><i>I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.</i>
    Maybe you can consider using MultiMapping to send the multiple Mails out of XI.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Is this what you want?
    Regards
    Bhavesh

  • File to mail adapter scenario.

    Hi All,
    i have a file to mail adapter scenario.
    here i get the data from tthe different vendors and what ever comes in should be validated and  if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.
    my questions are...
    <b>1.whare should we validate the data..is it in the XI server or receiver mail adapter..
    if so..how to do that validation
    2.how can we send as attachments ..
    3.how can we detach them..i.e if attachments are not required 4.if content conversion conversion has to be done where is that done..
    4.after coming out of the receiver adapter....how can we send it to the appliocation server.</b>
    Thanks in advance..
    cheers,
    raghavesh
    Message was edited by:
            Raghavesh Reddy
    Message was edited by:
            Raghavesh Reddy

    Raghavesh,
    Not sure if i follow the entire question.
    ><i>here i get the data from tthe different vendors and what ever comes in should be validated</i>
    I guess you are getting files using the file adapter.
    ><i>and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.</i>
    Not sure I follow this part. You validate your incoming file and what do you do
    1. If the file is valid?
    2. If the file is invalid?
    are you sending mails in both cases.
    Like pinted out there are multiple places where validations can be done,
    1. Module -->  https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    2. Mapping --> Graphical / Java
    There are many options and they all depend on the incomuing payload and the entire process.
    So , if you can give us more details, maybe an optimum solution can be discusses.
    Regards
    Bhavesh

  • Sending Text File through Mail Adapter

    Hi Group,
    I need to send my Target as Mail attachment in the Text File?Can any body Suggest

    Hi swabap,
         You need to use PayloadSwapBean module in the Mail receiver adapter. This module will send the payload as an attchment to the mail server.
    Check the following link
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure:///people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Regards,
    Akshay

  • Send .bmp or .jpg File over Mail Adapter

    Hi All,
    I need assistance on the scenario: .jpeg or .bmp File -> XI -> SapInbox
    The contents of a file will be only the image and nothing else.

    Hi All,
    I have configured my Sender as File Adapter and Receiver Mail Adapter.
    I have my source File (.jpg) on my PC.
    I have the following problems in RWB when I check my Adapters :
    File = Sender Adapter v2727 for Party '',Service 
              MyServiceName': Configured at 2006-10-11
                                           09:40:39 GMT
             History:
               - 2006-10-11 10:16:50 GMT: Error: No suitable
               sender agreement found
    Mail = I get Status Green MyServicName:MyCommunicationChannel  running: started
    I cannot create a Sender Agreement as my interface is only going to get the File and send it out to Mail.
    What is it that I am missing.

  • Flat File to Mail Adapter

    Hi,
    I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
    Please give me some links or information related to this. What interface we need to take for file and Mail, How we need to do the mapping and all.
    Points will be rewarded for helpful answers.
    Thanks in Advance,
    Best Regards,
    Vijay

    I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
    file( attachment ) to mail
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Best Regards,
    Srikanth
    Reward the useful answers and you will get one point yourself

  • File to Mail Adapter but only payload no namespace

    Hi SAP Guru's,
    I want to know how to handle File to Mail interface with only payload in the text file.
    I am only getting this in the file
    ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS
    and I want to transform the structure like this to perform mapping otherwise mapping won't work.
    <ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
       <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    </ns0:ContentContainer>
    I believe it is only possible through xslt but I don't to know how to use it.
    Can somebody please help me to resolve this issue.
    Thanks,
    Iqbal

    Hi
    You can use FCC in sender channel, with slight change in ur structure,
    ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
    *<data>*
    <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    *</data>*
    </ns0:ContentContainer>
    Parameters
    Record set str          data,1
    data.fieldNames       payload
    data.fieldSeparator  'nl'
    Try it
    Regards
    Ramg

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

  • Mail Adapter and File content conversion.

    I have a scenario to send data from SAP to 4 different boards. I have used a Multi mapping for this scenario. I am using Proxy for SAP to xi and SOAP, File and Mail adapter for the external connections.
    Questions:
    1) I need to send a mail in CSV or Excell format in one scenario. I have used AF_StrictXml2Plain Module but its not working? any thoughts?
    2) In the file adapter I have to add the YYYYMMDD (current Date) to the file name? when I use timestamp i get the time too, any way of getting only date? I cant use the Variable substitution as i dont have date in my payload.
    3) Receiver File content conversion:
    My Message Type Looks like this
    MT_XX_XX
         Row
            title
            xxx
    I have used these parameters:
    Recordset Structure:  Row
    Row.addHeaderLine : 0
    Row.fieldSeparator : ,
    Row.endSeparator: 'nl'
    am I doing something worng, the file content conversion doesnt work.
    Please let me know
    Thanks in advance

    Hi,
    Make sure u are using the bean before the mail adapter bean.
    Before using the file content conversion make sure that there are no substructures in it , in order to use addheader line as 0. else use addheaderline 3 and give the headerline as comma seperated values
    for e.g if this is the type then addheader line= 0
    Type 1  :
    Record_Mt
         Row
             field1
             field2
    else if this the type then addheaderline = 3
    *Type 2: *
    Record_Mt
         Row1
             field1
             field2
         Row2
             field1
             field2
    add module like this
    localejbs/sap.com/AF_Modules/StrictXml2PlainBean
    with the module key e.g. key
    for type 1 struct (as above )add parameter- key as singleRecordType  and value as Row with comma seperated value. (remember header line is 0)
    for type 2 structure (as above )add parameter- key as recordTypes  and value as Row1, Row2 with comma seperated value. (remember header line is 3)

  • How To Send A Text Attachment Through MAIL Adapter

    Hi Experts,
       I Did A Scenario that is  By using file adapter at the sender side and PI as a middle ware i have sent one text file to database
    Now here my question is
    I have to send the same text file which i have sent database... my using Mail Adapter
    Simply  File to Mail Scenario
    FILE         PI                MAIL
    But I have to send the same text file which i sent to database... by using mail adapter... Here all the configuration are done ... And the channels are working properly... only thing  here is..to send same text file using mail adapter..
    It will be good if  any one can explain step by step..
    Regards
    aravindh

    Hi Rajendra,
       Tanq for connecting me ... This  Blog helped me a lot ....And it is a useful answer to me..
    For this file to mail scenario we have got .txt as an attachment ... Its fine ... But her my Client is asking me to add CONTENT in the mail... Content in the sense..
    Example of content...
    Hi,
    Please find the attachment
    Regards,
    sap pi,
    They need in the form of like this...  To add content in the mail  What i have to do...DO i need to add more configurations if it is what are they...
    Please solve the issue.. It is appreciated  some one can explain me step by step or .. By sending me screen charts..
    Thanks in  advance....
    Regards
    vinay

  • Mail adapter error: Unsupported protocol: linsmtp [null "null"]

    Hi,
    Idoc to Mail adapter. First time working with mail adapter.
    When I tried to send messages from transaction "SO00", i'm able to receive the mail which means the connection is fine from XI to mail server.
    But when I try to send the file using mail adapter, it is failing in adapter engine with the error below.
    Success Mail: calling the adpter for processing
    Error Mail: call failed; com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    Success Mail: sending a delivery error ack ...
    Success Mail: sent a delivery error ack
    Error Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    2010-11-12 14:12:02 Error Exception caught by adapter framework: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    2010-11-12 14:12:02 Error Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"].
    Checked SMICM -- GOTO-->Services --> SMTP is active with green tick.
    Receiver adapter:
    Transport Protocol = SMTP
    Message Protocol = XIPAYLOAD or XI ALL
    URL = SMTP:linsmtp.sap.com
    Not using User Authentication
    User/ Password given - No userid/pwd
    From, To = mail id
    Content Encoding = try with none or base64*
    Is there any setting which I need to do? how to connect and send message to mail server?
    Thanks
    Deepthi.

    Hi,
    My connection is working now when I downloaded the xsd and executed in the mapping as described in the blog.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Connection is working fine now, but im getting the below payload.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>TESTING</Subject>
      <From>deepthi at testing.com</From>
      <To>deepthi at testing.com</To>
      <Content>Testing purpose</Content>
      </ns1:Mail>
    The question is how to get my actual message which looks like below. this is the Idoc to file map and the resultant output file looks like below
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:order xmlns:ns0="http://testing/xi/OrderProcessing">
         <document_type>ZU</document_type>
         <vendor_number>200000</vendor_number>
         <vendor_email_address/>
         <vendor_address_line_1>XXXXXX</vendor_address_line_1>
         <vendor_address_line_2>XXXXXXXXX</vendor_address_line_2>
         <vendor_address_line_3>123242343244566</vendor_address_line_3>
         <vendor_address_line_4>US</vendor_address_line_4>
         <delivery_address_line_1>1433</delivery_address_line_1>
         <delivery_address_line_2>test</delivery_address_line_2>
    </ns0:order>
    How to send this file as email attachment using mail adapter. Do I need to use 2 maps?
    looks like Mail adapter is working only when we use the xsd which is given above and by providing the required details.
    Kindly help me if anyone worked on mail adapters.
    Thanks
    Deepthi,

  • Configuring a mail adapter

    I have been going through procedure to create a File - Mail scenario.
    I was going through the SDN TV link for the same and it is told that no target DT creation is required and need to download from market place.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/70e47c62-0c01-0010-dea1-83390d4beb4c
    Does this mean I cannot create DT for Mail scenario manually?
    If I have to download the DT... please provide the link and procedure to import it to my NS.
    Also please provide step by step instructions for creating this scenario.
    I have been through blogs.. I came across this scenario using XSLT,  Mail Receiver Adaptor Configuration, how to implement dynamic mail address, eMail Report as Attachment but i failed to find good blogs that descripe step by step.
    Thanks,
    Venkat.

    Venkat,
    You can download from this location mentioned in this thread:
    File to  Mail Adapter
    Also if you dont have user id and pwd for oss you hv the xsd here. Copy it in a notepad and use it:
    Problem in Occurance for Mail XSD
    You can see this step by step:
    https://wiki.sdn.sap.com/wiki/display/XI/StepbyStepMailToFileScenario
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Regards,
    ---Satish

  • Sender "Mail" adapter - CSV file attachment

    Hi there
    I'm looking for some help in configuring a sender mail adapter that receives ".csv" files. I did read some blogs that mention using the "PayloadSwapBean" module to read the mail attachment instead of the mail content. My problem is to now convert the ".csv" file into a message. Is there a module that I can use ( is it the "MessageTransfomBean" ) and how. Any help would be appreciated.
    Thanks
    Salil

    Hi Salil,
    If you want to send a mail with a body and attachments, the message sender HAS to provide an XI message with attachments. I doubt a CSV file does justice.
    As Renjith said you need to convert CSV to XmL.
    A short description about the Standard Modules:
    MessageTransformationBean is a standard module used to apply the XSLT mapping to the adapter module by using <i>Transform.class</i> ( This xslt mapping is done to create a mail package, Dont confuse with the actual mapping in your case this is NOT for converting csv to xml).
    Also this module can be used to change the name and type of payloads by using <i>Transform.contentType</i>, <i>Transform.contentDisposition</i>, <i>Transform.contentDescription</i>.
    PayloadSwapbean is a standard module for replacing payloads with other payloads (SWAP)
    If you want to give each attachment a certain name use Parameters, <i>swap.keyname</i> for name of the payload and <i>swap.keyvalue</i>.
    I Hope the use of standard modules is understood.

Maybe you are looking for

  • Can multiple apple ids share the same computer?

    Would my children have the same access to music and apps we've downloaded if they open their own and login with their own apple i.d. account?

  • Swap Image Looks fine in Firefox, not Safari? Can Javascript be an issue in Safari?

    Hi, Im new to web design as you may guess. I'm trying to put together a website navigation page with several swap image div tags. When I view the page in Firefox it looks fine, after the behavior is applied the page doesn't view at all in safari? Can

  • Meta tage in PDF files

    is there a tool that will generate Meta Tag data in existing PDF files? I do know how to do it manually but literally have a bunch of pdf files to edit and a tool that what would at least get me close would be a big help. If you are wondering "why bo

  • Poor image quality when sending via Mail?

    This is a new problem for me, yet I'm doing the same thing I always have... Previously, I could "Email" from iPhoto, select an image quality and size, and have it appear correctly as an attachment in a new message, with appropriate quality, with a su

  • Mighty Mouse stopped working, help!

    I have been using my corded Mighty Mouse since 2007 with no problems. I have encountered problems with the scroll ball getting clogged but have always been able to clean it. However recently the mouse just stopped working unless I put it on a texture