File to mail  scenario

In file to mail scenario how can we send a document/image as an attachment  along with the data?

Go thru this link. It contains demos on how to work with Mail adapter
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#xi [original link is broken]
Have a look at these weblogs ....
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Regards,
Shabari

Similar Messages

  • How to configure receiver communication channel in File to mail scenario?

    Hi all,
            I'm working in FIle-to-Mail Scenario. I did all the required configuration In Integration repository. As per my Scenario whenever a text file stored in Application server of the R/3 system. it should be sent as a attchment with a mail.so i set a sender communication channel with file adapter in sender R/3 system . i dont know which business system should i refer for my receiver communication channel.because my receiver end is  a mail server. should i create any third party business system for this one?
    can anyone suggest me to define a receiver comm channel in a right manner?
    helpful answers will be rewarded.

    Hi,
    Check these
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    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/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Regards
    Seshagiri

  • Error in File to Mail Scenario

    Hi All,
      I am getting the following errror at adapter level in File to Mail Scenario in XI production
    Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: server not responding OK to RCPT TO; 554 Relay access denied
    In XI development the scenario is working fine. I also checked with basis people for the configurations of the two servers and it is same.
    Can any one suggest the possible ways to solve the above error.
    Regards
    Prakash

    Hi All,
       I tried with one more SMTP server in both development and production , In development mail is going. But in production i am facing the following error in receiver adapter.
    Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ConnectException: Connection refused
    Exception caught by adapter framework: java.net.ConnectException: Connection refused
    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: java.net.ConnectException: Connection refused.
    Kindly provide some solution to solve the above errors.
    Regards
    Prakash

  • File to Mail Scenario error

    Hi All,
                    I did file to mail scenario. The source structure contain the following elements like <to>....</to>, <Subject>........</subject> etc (the source structure created by me). In Integration Directory I set the Mail adapter Message protocol as "XIPAYLOAD" and Mail attribute "Use Mail Package" selected.  So here my scenario should send a mail to which has i given "To Id" in my source structure. But when i go to SXMB_MONI, I found my message as red flag and it is showing information like "thrown during application mapping". Here what is the problem and how can i rectify the problem, please any one help me, 
    Thanks & Regards,
    Satish,

    Hi,
    you should add your email address to your user,add specific users list add you r user in alrtcatdef.
    generally you should maitain the email data type format like
    subject,from,to,content-type..
    se below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    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]
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Regards
    Chilla..

  • File To Mail Scenario Clarification

    Hi!
    Can someone help me with this....
    1)In a File To Mail Scenario, while selecting the mail server, do we need to select only the mail server or we can select any server...I mean, when I was doing this scenario, I selected my Windows 2003 server....as the mail server and the url as smtp://ipaddress....Also, I tested it, by putting the Source payload in the FTP server......Then, used SXMB_MONI to check the file....I saw the success flag... My question here is, how to check the mail......Can, you give me the step by step instructions for testing the File to Mail scenario....
    2)I loaded Eclipse on my system, How to open that (execute that)...I mean...I want to learn Java Mappings..Where should I put the  code.....etc.... Step by step instructions with screen shots please....
    Thanks....

    >>2)I loaded Eclipse on my system, How to open that (execute that)...I mean...I want to learn Java Mappings..Where should I put the code.....etc.... Step by step instructions with screen shots please....
    Open the "eclipse.exe" and go on help. It will say how to create your first java project. Once you are comfortable with tool then go for Java Mapping. (Efficient way of learning
    thanks
    Farooq

  • Xml file to mail scenario with zip file as an attachment

    Hi experts,
    I have  a file to mail scenario. File is in xml format.
    At receiver side, first I want to zip this file and send the zip file as an attachment using mail adapter.
    How can i achieve this?
    Regards
    Divia

    Hi Shabarish,
    In the module tab i have specified the below beans
    localejbs/AF_Modules/MessageTransformBean                           contentType
    AF_Modules/PayloadZipBean                                                    zip
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean           mail
    In the module configuration i mentioned as
    Transform.ContentDescription   file
    Transform.ContentDisposition   attachment:filename="file.xml"
    zip.filenameKey                      contentType
    zip.mode                                zipOne
    Now i am getting the mail with zip file as an attachment.But the name of the attachment i got is MainDocument.zip
    Even the file name inside the zip is MainDocument.xml.
    How can i specify my own file name for both zip file and the file inside the archieve folder.Please help me.
    Regards
    Divia

  • File to mail scenario with zip file as an attachment

    Hi experts,
    I have a file to mail scenario.The mail contains a zip file as an attachment.
    The file in the input folder is a zip file. I want to send this zip file via email using mail adapter.How can i achieve this?Please help me to solve it out.
    Regards
    Divia

    Hi Narath,
    Do check the below link it will be helpfull
    Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway
    Thanks
    Sampath

  • File to mail scenario with dynamic email addess

    Hi All,
    I am doing a file to mail scenario with attachment(mail package is used), where i need to pick a file from folder and based on the file name(Country code is provided in file name. for eg. Collections_UK02_20091210.txt. here UK02 is the country code), i need to send an email to dynamically. I am using value mapping for country code with email address. please provide me suggestions like how can i pick the file based on the country name and send to the corresponding email address.
    Regards,
    Mahakrishnan T.

    Hi Mahakirshanan,
    >>how can i pick the file based on the country name and send to the corresponding email address.
    You cannot do this.. better will be to make a generic interface which will pick the file and based on its filename it will make the to field
    Follow these steps:
    1 Read the file using communication channel (check the adapter specific identifiers)
    2. Using dynamic mapping read the filename and based on the name of file decide the To address and update it to the To field of mail package. You can use value mapping to decide what the targetvalue can be.
    Regards
    Suraj

  • File to Mail scenario? File not received only namespace

    Hi,
    I tried to do file to mail scenario. I read blogs and forum questions before posting this.
    My problem is that I am sending.dat file in file to mail scenario.
    I used XIPAYLOAD and without Mail adapter
    When i received mail it contains attachement Untitled.xml and it does not contain my file data it contains only this.
      <?xml version="1.0" encoding="UTF-8" ?>
      <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30" />
    I do not know how to create file with payload containing To, from subject, content things. I tried Michal blog and disabled unneccessary fields etc. and when i send email as file but now In RWB it gives error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: no sender address specified
    regards
    hussaan

    Hi again,
    Simple message types and i use ximail30_xsd.txt from sap note as external defination
    Message mapping is also simple according to SDN TV.
    Adapter: Mail
    Transport Protocol: SMTP
    Message Protocol:XIPayload
    Adapter Engine: Integration Server
    smtps://smtp.googlemail.com:465
    Authetication Method: Plain
    User: complete email address
    Mail Attributes:
    From: email address
    To: email address
    Subject: test
    Content encoding: base 64
    Keep attachement: Option Checked
    No other change i did, With this configuration i receive email with untitled.xml attachement which contains only namespace info (no data).
    In my other try i changed message mapping and uses to create payload which michal refers by using constants(text to describe TO, from, subject) and text functions(concat)  in message mapping fields.
    Integration driectory setting for that
    Adapter: Mail
    Transport Protocol: SMTP
    Message Protocol:XIPayload
    Adapter Engine: Integration Server
    smtps://smtp.googlemail.com:465
    Authetication Method: Plain
    User: complete email address
    Mail Attributes: option checked
    Content encoding: base 64
    Keep attachement: Option Checked
    With this option it gives error in RWB that no sender  found
    Regards
    hussaan

  • File to Mail Scenario - Need help

    Hi all,
    I am trying a simple file to mail scenario in which i am using following data types .
    Source datatype -
    Scr_File_DT
    -- Root
    Material_no
    Plant
    Target datatype -
    Tgt_Mail_DT
    --Content
    In the message mapping i am concatenating material_no and plant and mapping it to content.
    The receiver mail adapter parameters are as follows -
    Transport protocol - SMTP
    Message Protocol - XIPAYLOAD
    URL: smtp://gmail.com
    Configure User Authentication: X (Check box is selected)
    Authentication Method: Plain (from drop-down box)
    User: [email protected]
    Password: ****
    from: mail address
    to: mail address
    subject : test mail.
    Just wanted to confirm whether these settings are correct or not? Because i am not getting the mail in my mailbox.
    Can anyone please help me on this.
    Also are there any other settings required for using mail adapter ?
    Thanks.

    Hi,
    you should add your email address to your user,add specific users list add you r user in alrtcatdef.
    generally you should maitain the email data type format like
    subject,from,to,content-type..
    se below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    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]
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Regards
    Chilla..

  • Error while doing file to mail scenario

    Hai All,
              I am getting the following errors while doing the file to mail scenario.
    Error:Exception caught by adapter framework: Failed to call the endpoint
    Error:Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint.
    Can anyone please give me solution...

    Try this:
    Re: "Could not determine code page" inbound side error
    and this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660

  • File to Mail Scenario- Error in Mail Adapter

    Hi,
    I am working on File to Mail Scenario- I am getting the below Error in Mail Adapter
    Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.io.IOException: no receiver address specified.
    Could any one please provide a solution
    Rgards,
    Varun

    Please recheck the mail adapter configuration.Check the url field.
    Ref for Mail adapter
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

  • Unable to get source file content as mail body in file to mail scenario

    Hi Friends,
    I am facing one problem with one of my file to mail scenario in PI(SP9).  I have done bypass scenario(without IR only with ID objects). Scenario is working fine, i am getting mail also.  But my requirement is i want complete source file content as a mail body (not xml format, text format).  I have checked all options, but configured scenario bydefault taking source content as a attachment and mail body is empty.  I have tested below options
    1. If i choose message protocol as FCC mechanism at source side content at target side i am getting xml format as a attachment( In mail adapter i have selected message protocol as xi payload, and without packate option on mail adapter). If i choose message protocol as xi all, i am getting 2 files as a attachment (one file as a payload content and second file as a source file content in xml format).
    2. If i choose message protocol as file at souce side that time i am getting source complete content as a attachment at target side in xml format, but mail attached file content is flat file(.xml extension) format. When i tried to open attachment file that time i am getting error in explorer, but i can see only one row in explorer  remaining rows unable to see.
    Please share your ideas on this.

    Hi,
    Follow below steps
    1. First basis level need to configure setup(SMTP) for mail.  After that only mail will go from SAP.
    2. Source side depending on requirement take communication channel(idoc, file etc)
    3. Receiver side communication channel take mail adapter and configure below setup
       3.1 select message protocol XI ALL/ XI PAYLOAD(WITH PACKAGE or WITHOUT PACKAGE)
       3.2 if message protocol is XI ALL, the complete content will be sent as a attachment along with payload file
       3.3 if message protocol is XI PAYLOAD, the source message, the source message will be sent as attachment.  Playload file filter automatically.
       3.4 If you use PACKAGE option on mail adaper, this time source strucute need to import from SAP (some standard structure only will be support, without strucutre we can't work).  If you choose package option no need to give mail id on communication channel, we need to pass mail id's from source structure.
    I hope now clear.

  • Attachment file not picked - File to Mail scenario

    Hi,
    I'm just trying out the file to mail scenario as suggested in blog:
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    I created a xml file as the main mail content(main.xml). And I also have an attachment file(txt) placed at the same location. The file adapter picks the mail.xml, but not the attachment txt file. I can see the mail in my inbox, with the mail.xml added as an attachment..
    I have added the "additional files" in the File adapter configuration. Also in mail adapter configuration, I have checked "Keep attachments"
    Are there any other configurations I'm missing out???
    When I check in XI ABAP engine, sxmb_moni, I see the following error:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_Mail_MM_</SAP:P1>
      <SAP:P2>java.lang.NullPointerException</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_Mail_MM_:</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi,
    Thanks for the quick response...
    Prateek,
    the mapping is fine in IR.
    Sanjeev,
    Making the optional parameter created a failure in the communication channel.
    the error the file sender returns in XI runtime workbench is
    "Error: java.lang.Exception: Add attachment: Mandatory additional payload file 'main.txt' not found!" though my attachment name is  "Attachment.txt" . I renamed the attachment file to "main.txt", and made necessary changes in Additional file configurations too...
    I have the attachment in the same location as the main content xml file. Should I specify somewhere the location of my attachment file too?
    Gabriel,
    Very useful link. but I dont see the failure in sxmb_moni now, may be because the failure occurs at the Communication Channel level itself????
    -Ajitha

  • File-xi- mail scenario with attachements

    Hi
    Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
    thanks
    kumar

    Hi,
    >>>>Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
    yes: your application puts order data into a file and generated a PDF file with it
    XI takes both and send order file in mail and PDF in mail attachment
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for

  • Family sharing not sharing payment information

    Family sharing not sharing payment information We have two iPhones on iOS 8. Previously my Apple ID was logged into my wife's phone for iTunes and app purchases to share purchases (she's had her own apple is for iCloud all along) . I set up family sh

  • How to print the data in the grid?

    Hi all, I'm new to java. So, I need some helps. I want to print the data in the grid. Data could be more than one page. But I have no idea how to start writing code. Please let me know if you know. Thank you. DT.

  • In my ipad, I m getting playback error continuously on YouTube

    getting playback error continuously in YouTube in my ipad

  • "iMovie 10" on 2nd Monitor

    How do I setup The new IMPROVED iMovie download to playback on my second monitor? It worked fine before I upgraded, and some help

  • Offline - licence problem

    Hello, how can I use navigation in my mobile device in offline mode. When I'm in an offline mode and plan a route, it is navigating for a few second, but then the notice appear, that if I want to enter nokia shop, I must be online. And it gives me a