Using Attachments in the Email Adapter

Hi,
I'm using an email adapter(Sender - XIPayload) to send message to XI. It was working fine when my mail content was the XML messsage. But now i have to use the content of an attachment file to do the mapping. The attachment is an XML file. I have checked the Keep attachments option and now i can see that the payload contains two sections. One is the mail content and the attachment content. But the mapping fails. How can i specify that the content of the attachment is to be used for mapping? Can somebody give some inputs on how to achieve this?
Thanks,
Sandeep

Hi Sandeep,
To use attachments in mail adapter, just do the following things:
-     Set the Keep Attachments indicator.
-     And you use the PayloadSwapBean module to swap the application payload with one of the attachments.
Please also go thru the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm
Regards,
abhy

Similar Messages

  • Need to send attachments in the email

    Hi,
    I'm trying to write lines in a file. Not all of my lines are not written into the file.
    So I'm writing line by line into the file whcih its failed at say 350lines. after that its no more writing the data.
    Please anybody let me know how i can write my data into a file (say 2GB) and send the same as an attachment in the mail.
    Thanks in Advance.
    [email protected]
    Here is the sample code which i'm using
    Declare
    Cursor C1 is
    Select * from my_table;
    line1     Varchar2(32767);
    heading1     Varchar2(32767);
    end_of_line     Varchar2(32767);
    fileHandler     UTL_FILE.FILE_TYPE;
    file_name     VarChar2(100);
    po_err_msg varchar2(1000);
    Begin
    --Open a file in my logical dir 'TEST_UTIL_DIR' for Write
         Select lpad(my_File_Seq.nextval,10,'0')||'.html' into file_name from dual;
         fileHandler     := UTL_FILE.FOPEN('TEST_UTIL_DIR', file_name, 'W');
         line1     := '<table border="1">';
    --Writing first line
         Utl_File.Put_Line(fileHandler,line1,False);
         heading1 := '<tr><td><b>'||'Emp No'||'</b></td><td><b>'||'Employee Name'||'</b></td><td><b>'||'Age'||
    '</b></td><td><b>'||'Gender'||'</b></td><td><b>'||'Relation'||'</b></td></tr>';
    --writing second line
         Utl_File.Put_Line(fileHandler,heading1 ,False);
         For i in C1
         Loop
              Begin
                   heading2      := '<tr><td>'||rpad(i.Emp_no,6,' ')||'</td><td>'||rpad(i.Emp_name,30,' ')||'</td><td>'||
                   rpad(i.Age,5,' ')||'</td><td>'||rpad(i.Gender,3,' ')||'</td><td>'||rpad(i.Relation,8,' ')||'</td></tr>';
    --in the loop
    --for each record
    --writing each record in the file
              Utl_File.Put_Line(fileHandler,heading2,False);
         Exception
              When Others Then
              Print(sqlerrm);
              End;
         End Loop;
         end_of_line     := '</table>';
         Utl_File.Put_Line(fileHandler,end_of_line,False);
         utl_file.fflush(fileHandler);
         UTL_FILE.FCLOSE(fileHandler);
    --sending the file as an attachment.
    demo_mail.send_email(
         P_DIRECTORY     =>'TEST_UTIL_DIR',
         P_SENDER     => 'From_user@my_Company.com',
         P_RECIPIENT     => 'to_user@my_Company.com',
         P_CC          => 'cc_user@my_Company.com',
         P_BCC          => 'bcc_user@my_Company.com',
         P_SUBJECT     => 'Testing in Development',
         P_BODY          => 'Please find the following attachments.',
         P_ATTACHMENT1     => file_name,
         P_ATTACHMENT2     => null,
         P_ATTACHMENT3     => null,
         P_ATTACHMENT4     => null,
         P_ERROR          => po_err_msg);
    Exception
    When others then
    Print(sqlerrm);
    End;
    /

    Numerous threads regarding this issue:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=attachments+in+the+email&objID=f75&dateRange=lastyear&userID=&numResults=15
    Greetings...
    Sim

  • TS3899 With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this pro

    With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.

    Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad.  Pay real close attention to the outgoing server name, and port.  You may need to change in on the pad. 

  • Process attachments with sender email adapter

    Hi @ all,
    I have some problems dealing with xml attachments on emails. I configured the email sender adapter by using Michals Blog
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step:///people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Unfortunately the mail header looks different as the one in the blog:
    <b>Content-ID: <[email protected]>
    Content-Type: application/octet-stream;name="[email protected]"
    Content-Disposition: attachment;filename="MailAttachment-1.bin"
    Content-Description: MailAttachment-1</b>
    What can I do to make it look like in the blog?
    thanks and Regards.
    Oliver.

    Hi,
    Try With the Following Blogs
    /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] [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
    Reward Points if Helpful
    Regards
    Khanna

  • Do not want to display mail attachments in the email body

    When I want to add word processing attachments, usually with .doc extension, the whole of the text is displayed in the body of the email.  I do not want this, I just want to show the name of the file such as MyLetter.doc or AnotherRamble.doc etc. 
    I use the doc extension because those on one of the other operating systems may not be able to read .pages extensions. 
    I may from time to time send files with the .xls extensions and more recently I have just sent 20 x A4 pages of scanned documents which have .jpg extensions, every one of these .jpg attachments is displayed in full in the body of the email, it makes them difficult to read and hard to print.  The original plan was to send 20 x .jpg, the recipient would print them out.  There is some complex data in these documents and honestly hard copies are essential at the other end.

    Control click or Right Click on the attachment in the body of the email and select 'View as icon'.
    There is a (paid for) mail plugin called Attachment Tamer which helps Mail do a much better of handling attachments - giving much more control over how they are viewed/arranged/received. It's available from http://lokiware.info/Attachment-Tamer
    (Usual caveat, I've no connection with Lokiware, just happy with their product).

  • Can not see attachments on the Email

    The overview screen shows that there is an attachment but when you select the message the attachment does not show up, this is happening when messages are forwarded. At times when there is a pdf attachment (not a forwarded message) what opens up is the media player. Some pdf attachments have no problems of opening.
    The N900 needs to become a serious phone, this needs to be fixed.
    This does not happen on my N97 !
    Any solutions ?

    This just happened to me. After a bit of messing about I decided to forward the message  back to my own e-mail address.
    Again the email attachment was shown in the overview screen but not in the main email, however, the attachment was now available from the sent items folder.
    Not a fix or solution, more of a bodge!!!
    Hope it helps

  • Why can't I use and in the email address on my iPhone?

    When in email address input mode, on iPhone, the < and > are not available.  These characters are used to indicate an email address when a name is used as well.  For example....   John Smith <[email protected]>   This will add John Smith and his email address to my contact list, not on my phone, but in my email.  Please tell me this will be possible when iOS7 comes out.
    Thanks,
    Eric
    For now, the only way to do this is to go to the body of the email, enter the info    John Smith <[email protected]>   cut and paste it into the email address location.

    Thank you! That worked... I didn't even remember I had that app on the phone .

  • Using Pages as the email Editor in Mail

    I find OS X Mail very limited in spelling error correction and grammar correction. Is there any way to use Pages as my email editor or would it be faster to learn how to spell?

    Pages is a word processor, not a text editor, and Mail compose is not a Word processor in its capabilities. Apple Mail makes no provision for an external text editor, and I would advise against using copy/paste between Pages and Apple Mail. I find Apple Mail spelling and grammar checking adequate, when properly enabled.
    In Apple Mail, you can enable Spell Check as you type (or before sending), and Check Grammar with Spelling. This would not let me type incorrect or incomplete words. For words that it does not know about, you right-click, and tell it to learn that spelling. People are basically patternistic, and draw from the same basic word choices in communication. You could also keep Apple's Dictionary app in your Dock, and refer to it as needed — I do.

  • Read attachment in the email adapter in PI 7.11

    Hello Experts
    I am working on as scenario where I would be receiving source payload as an attachment in the email, and I need to read the attached payload and map it to the target structure
    please let me know how can i read the attachment as part of the payload
    Thanks
    PR

    Hi,
    have a look at my article:
    The specified item was not found.
    Regards,
    Michal Krawczyk

  • Why is the "From:" field being changed in Mac Mail.  I have multiple gmail accounts setup and it seems to change the "FROM" field even though I've selected which account to use to send the email.

    So
    I've got multiple gmail accounts setup in Mac Mail.
    Somtimes when I send or forward emails, it uses the wrong FROM field even though I'm declaring
    specifically which account to use.
    This becomes apparent when the person replies to my message and it goes to the wrong account

    Check you accounts in Mail and make sure each account has the correct outgoing server address. Check the box to use only that server.
    Second, go to the gmail website and in settings under the account tab, make sure you have the correct settings for replying to messages.

  • Can I use headphones with the two adapter plugs on a Mac Pro

    I have headphones with two plugs.  I don't know where to plug them in. There are two portsin the back and before I open this package I need to know if those are the appropriate ports, since they are the only two side by side ports on the tower.  I have another set of headphones that have the two plugs, but upon trying them, there was no sound regardless of how i adjusted things in the 'sound' in system preferences.
    Help with this is greatly appreciated.

    I'm guessing that the headset has a microphone as well as earphones, yes? If so, there is no microphone input on your Mac Pro, only a line level input. So you can use the headphones portion as is, but the mic will require additional hardware.
    The ports will be designated in the user guide for your model of Mac Pro:
    http://support.apple.com/manuals/#macpro
    but if you look at the various ports on the back of the MP carefully, you'll find one marked with a tiny "speaker" icon. That's the line-level output to which you can connect some headphones. The other port is a line-level input. If you want to use a microphone, you'll need either a line-level mic or an amplifier device of some sort. Griffin's iMic is a commonly-recommended converter.
    Regards.

  • Can I control  filenaming when archiving  files using the file adapter?

    Hi folks,
    Is there anyway to control the filename used when the File Adapter writes out to an archive?
    Second question, I also need to be able to pass a "filename" to the adapter from an "input file." Is there a way to do this in the file adapter?
    Sincerely,
    lpac

    Hi,
    I have done that with the ftp adapter. In the .xsl file I wrote the following after the <xsl:stylesheet version="1.0" ....> tag:
    <xsl:variable name="INFILENAME" select="ehdr:getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
    <xsl:template match="/">
    <xsl:variable name="OUTFILENAME"
    select="ehdr:setOutboundHeader('/fhdr:OutboundFileHeaderType/fhdr:fileName', $INFILENAME, 'fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;')"/>
    <opaque:opaqueElement>
    <xsl:value-of select="/opaque:opaqueElement"/>
    </opaque:opaqueElement>
    </xsl:template>
    </xsl:stylesheet>
    To use this with the file adapter, you would have to wirte file where is written ftp.
    Hope this helps,
    Zaloa

  • Query related to Email adapter

    Hi,
    I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.
    My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.
    My query is is related to Standard module processors sequence.
    For 3 files in mail attachments(.xml , pdf & .txt)  what should be the module processors sequence in receiver email adapter?
    Currently I am using the following module processors sequence
    1     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans2
    2     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     swap
    3     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans1
    4     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    swap -> swap.keyName -> payload-name
    swap> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file1
    trans2>Transform.ContentDescription>inline
    Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt)  should go as an attachments in the reciever email adapter.
    Thanks & Regards
    Prabhat

    it would be something like this, Try this
    1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt
    2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3
    3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml
    4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
    5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf
    6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
    7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    swapxml -> swap.keyName -> payload-name
    swapxml> swap.keyValue> file2
    swappdf -> swap.keyName -> payload-name
    swappdf> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file2
    trans2>Transform.ContentDisposition>attachment
    trans2> Transform.ContentType>application/xml;name="file2.xml"
    trans3> Transform.ContentDescription>file3
    trans3> Transform.ContentDisposition>attachment
    trans3> Transform.ContentType>application/txt;name="file3.txt"
    mail --> mime.contenttype   --> multipart/mixed
    I have not tried this myself. but it should work

  • Email Adapter

    Hi,
    Explain me in detail abt the Email Adapter & How to configure the Email Adapter?.
    Thanks,
    Soumya.

    Hi,
    Mail Adapter
    Purpose
    The mail adapter enables you to connect e-mail servers to the Integration Server or the PCK.
    The receiver mail adapter converts XI messages to e-mails and uses the Simple Mail Transfer Protocol (SMTP) or the Internet Message Access Protocol (IMAP) to transfer them to the e-mail server. The sender mail adapter uses the Internet Message Access Protocol (IMAP) or the Post Office Protocol Version 3 (POP3) to collect e-mails and convert them to XI messages.
    If an e-mail server is communicating with the mail adapter, you can configure security settings to encrypt/decrypt and sign/verify messages. Here, message security is based on the S/MIME internet standard (Secure Multipurpose Internet Mail Extension.
    Configuring the Sender Mail Adapter
    Use
    You configure the sender mail adapter to convert e-mails to XI messages.
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Configuring the Receiver Mail Adapter
    Use
    You configure the receiver mail adapter to convert XI messages to e-mails.
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/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] - File to Mail
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
    Thanks,
    Satya
    Edited by: SATYA KUMAR AKKARABOYANA on May 22, 2008 6:00 PM

  • Alert Mechanism Vs Email Adapter? please help!

    Hi Experts,
           I have requirement where I have to send error info as email. The email has following characteristics:
    1. Content is multi-line.
    2. Data is dynamic.
    3. Content has to be formated. Like header, footer and '---' lines as separaters.
    4. Content could be more than 100 lines.
    5. More than one email content may be consolidated into one.
    6. Content can also be sent in HTML format.
    Is email alert mechanism suitable for this requirement? if yes then How?
    If all of the above can be satisfied by Alert mechanism then what is the use of Email adapter?
    Are there any pros and Cons of using Alert mechanism and Email adapter?
    Please help!
    Thanks
    Gopal

    Hi Gopal,
    Please be specific in your question. Do you want to send an error info as an e-mail when your scenario causes an error or Do you want to send an error log which is generated for any other scenario as an e-mail attachment/Error log’s Content as the body of  a mail. Both these things are possible in SAP XI 3.0.
    1.       We can send an e-mail with multi-line content using E-Mail Adapter.
    2.       We can set Dynamic Data as the e-mail content.
    3.       The Dynamic Content has to be formatted either in Mapping or in Module and then sent to E-mail Adapter. E-Mail Adapter cannot do the formatting.
    4.       Content can be of any number of lines.
    5.       The consolidation should be done in Mapping or in a Module program and the consolidated data should be given to  the adapter.
    6.       Yes Content can also be set in HTML format
    The above said points are possible in SAP XI 3.0’s email adapter. Alert Mechanisms can be used when you want to send an alert on any event occurrence. It has many limitations like the content should be within specified length etc. we cannot use alert mechanism to pick a file and post the content of the file as an Email. Alert mechanism will work only for the alert categories which you have defined.
    Regards
    kausik m

Maybe you are looking for

  • Why do I get an error message that says "Incompatible Types"?

    I am a newbie to Java programming. I have experience with VB. I am using Net Beans 6.1. I was following a sample program that shows me how to use the JDBC ODBC bridge to connect to an MS-Access file. I get an error message at this line: statement = c

  • CCM 4.1(3) multiply T1s, PRI, routing with CMM card

    I have the following hooked up and working currently: CCM 4.1(3) (2) CMM blades in 6509 (4) PRIs (2 in each CMM blade) (1) Tie line gateway for remote office connections My client wants to add (2) T1 lines into the CMM and route only long distance ca

  • I am using IPhone 5 with osi8.1.

    I am using IPhone 5 with osi8.1. My contacts are not showing phone numbers   (home and IPhone).  However, to the right of   Where the phone number should be – is a   facetime icon and to the right of that is a phone icon.   If I touch either icon the

  • Script total in only final page

    Hi I am working on scripts. Output i am having 4 pages, i don't want the totals for each page and also no of lines. <b>How to display totals, in only Final page.</b> Rgds Chinna

  • Adobe Distiller 6.0

    My company is urgently trying to source Adobe Distiller 6.0, does anyone have any advice as to where we can purchase a copy?