Sending multiple attachments in EMail adapter based on the segments:

Hi,
The scenario is from IDOC-Mail and the requirement is will we be able to send multiple files in the Email based on the segments ?
Just assume that you have to create one file with the IDoc header data,
and in addition to that one file per segment.
Is this requirement possible?Please help .
Thanks & Regards,
Rajesh
Edited by: rajeshkpnnaidu on Dec 16, 2010 8:33 AM

Hi,
In this case IDoc-file-mail, if we create multiple files based on the each IDoc segments,how we can combine all the files(created in local directory) which are related to 1 single IDoc  and send all of them in a single mail.
Ex: if there are 20 files in local folder with 2 different IDoc segments then how we can filter based on each IDoc.
Hope i am clear with my above description.
Please help?
BR,
Praveen

Similar Messages

  • Apple Mail sending multiple copies of email. What's the cure?, Apple Mail sending multiple copies of email. What's the cure?, Apple Mail sending multiple copies of email. What's the cure?

    Recently, my Apple Mail has been sending from two to six copies of email, timed to the same minute. I've taken to using Thunderbied (which I don't prefer) to avoid it. My theory is that if I can reload Lion it might cure it, but since Lion only comes as a download, I don't know how.
    I've had MacKeeper in place since before the problem, but updating it became impossible. I emailed that program and was advised to trash it, do a cold reboot and then download it again. I did, and it hasn't helped.
    Any suggestions?

    MacKeeper is so bad, it has earnt the distinction of a User Tip of it's own
    https://discussions.apple.com/docs/DOC-3036
    After dragging the app to the trash, you will need to clean up using something like  AppTrap, AppZapper, AppCleaner etc. The official MacKeeper uninistaller leaves advert popups still appearing on your computer.
    http://freemacsoft.net/appcleaner/

  • How can we send multiple attachments in a mail from iPad 2

    Hi,
    I am using a ipad2. I want to know how we can send multiple attachments through mail from iPad. I did not find any option of doing this. Is there a way to do this.
    Regards,
    Satyabrat

    You can't do it natively on the iPad (unless you just want to send up to 5 photos from the Photos app). I use the GoodReader app which supports quite a few document/file types (e.g. PDF, Excel, Word, pictures), and from that I can select multiple files (including different types) and attach them to the same email.

  • Iam unable to send multiple attachments with a mail using JavaMail?

    Hai to all,
    Iam unable to send multiple attachments with a email,see
    iam have succeeded in sending one attachment with a email.
    when iam tring to add two or more attachments to a mail,
    it is giving a Exception like this:
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    java.io.IOException: No content
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577)
    at javax.mail.Transport.send0(Transport.java:151)
    at javax.mail.Transport.send(Transport.java:80)
    at AttachFilesModified.sendMail(AttachFilesModified.java:185)
    at AttachFilesModified.main(AttachFilesModified.java:43)
    this is my code snipnet:
    BodyPart messageBodyPart = new MimeBodyPart();
    Multipart multipart = new MimeMultipart();
    if(body != null)
    messageBodyPart.setText(body);
    multipart.addBodyPart(messageBodyPart);
    /*if(attachments != null)
    for(int i = 0; i < attachments.length; i++)
    String filename="D:\\nagaraju\\apachi\\axis-bin-1_3.zip";
         //String s[]=filename.split("\\");
         //System.out.println(s);     
              //String s1=s[1];
              //String filename1=s[s.length-1];
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(filename);
         messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(filename);
    multipart.addBodyPart(messageBodyPart);
         //second file attaching
         /*String filename1="C:\\nagadoc.txt";
         BodyPart messageBodyPart1=new MimeBodyPart();
         DataSource source1=new FileDataSource(filename1);
         messageBodyPart.setDataHandler(new DataHandler(source1));
         messageBodyPart.setFileName(filename1);
         multipart.addBodyPart(messageBodyPart1);
    mess.setContent(multipart);
    Address[] allRecips = mess.getAllRecipients();
    if(toStdOut)
    System.out.println("done.");
    //System.out.println("Sending message (\"" + mess.getSubject().substring(0,10) + "...\") to :");
    System.out.println("Sending message................");
    for(int i = 0; i < allRecips.length; i++)
    System.out.print(allRecips[i] + ";");
    System.out.println("...");
    Transport.send(mess);
    if(toStdOut)
    System.out.println("done.");
    return 0;
    What's wrng with that code snipnet?
    Nagaraju G.

    This works fine with me, try it or compare it if you want.
    public void sendEmail( String from, String to,
    String subject, String body) {
    fMailServerConfig.put("mail.smtp.host", " <<mail server>>");
    Session session = Session.getDefaultInstance( fMailServerConfig, null );
    MimeMessage message = new MimeMessage( session );
    try {
    message.setFrom(new InternetAddress(from));
    message.setRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject( subject);
    message.setText( body);
    //Adds Attechment:
    Multipart multipart = new MimeMultipart();
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText("Here are my attachments");
    multipart.addBodyPart(messageBodyPart);
    messageBodyPart = new MimeBodyPart();
    //first attachment
    DataSource source = new FileDataSource("C:\\img1.jpg");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("C:\\Telnor1.jpg");
    multipart.addBodyPart(messageBodyPart);
    //Second attachment
    DataSource source2 = new FileDataSource("C:\\img2.jpg");
    messageBodyPart.setDataHandler(new DataHandler(source2));
    messageBodyPart.setFileName("C:\\Telnor2.jpg");
    multipart.addBodyPart(messageBodyPart);
    //etc...
    message.setContent(multipart);
    Transport.send( message );
    }catch (MessagingException e){
    System.err.println("Cant send mail. " + e);
    The error on your code might be:
    BodyPart messageBodyPart1=new MimeBodyPart();
    DataSource source1=new FileDataSource(filename1);
    messageBodyPart.setDataHandler(new DataHandler(source1));
    messageBodyPart.setFileName(filename1);
    multipart.addBodyPart(messageBodyPart1);
    You don't need to create a new BodyPart, and apart from that you'r seting values on "messageBodyPart" but adding "messageBodyPart1" to your multipart :P
    Well see u and have a good one!
    p.s. i know it's a little late from the day you posted, but at least it might help somebody else :D .

  • Cannot send multiple attachments since 10.5.8 with IMAP

    Have had a consistent issue that Mail 3.6 will not send multiple attachments, regardless of size, since the 10.5.8 update with a IMAP configuration. Under POP, as in Gmail, using Mail 3.6 with multiple attachments is no issue. Using IMAP through my Godaddy Hosted Domains, in some cases it actually is sending mail as verified through webmail "Sent" folder but does not show in Mail 3.6 "Sent" folder. Have verified this through sending from my IMAP Goddady hosted emails to my POP Gmail account accessed via Mail 3.6. Can also send successfully through webmail on Godaddy to any Pop or IMAP account.
    It seems something in the 10.5.8 update has altered Mail 3.6 to impact this functionality. As a business owner this functionality is crucial, may have to switch to Entourage.
    Any suggestions are appreciated.

    That crash is because of a bad result from an OS routine.
    Our best guesses involve corrupt application installs, or corrupt OS installs.

  • Is it possible to send multiple attachments from pages?

    Hello,
    Is it possible to send multiple attachments from pages? Currently I'm facing problems with sending multiple documents from pages in an e-mail. I don't like to send a new e-mail everytime I want to share a document!

    You can only email one file at a time from Pages. There may workaround using other apps - sending the Pages files to another app that supports multiple attachments, so you could give that a try.
    read this discussion for one such workaround.
    https://discussions.apple.com/message/17331538#17331538

  • How to Send Multiple Attachment by SOAP Adapter

    Hi,
    How to send multiple attachment by SOAP Adapter.
    I am able to send single attachment but at the time of sending multiple attachment i am not able to see in SXMB_moni.
    Regards,
    Anurag

    On the communication channel, please check the 'Do Not Use SOAP envelope' option. Also, please, add the "nosoap" attribute to the SOAP adapter caller. Check the note below for more information
    #856597 FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter
    > "How does the nosoap mode work for the SOAP sender adapter?"

  • How do I send multiple attachments in word format when the document is created in pages

    How do I send multiple attachments in word format on one em. The documents are in pages/numbers and if I use 'share' they each go into a separate  e mail

    Your welcome.
    New problem. Just purchased Docs Go Pro for iPad  word processor and there are buttons missing. Then when I go back to the App Store I clicked on app support and up comes server/webpage gone (basically). I Binged and there is not a direct site for support. How or who can be a help?

  • HT5787 Help, I have forgotten my Apple ID security questions and when i send it to my email address to reset the questions nothing shows up in inbox. Any other way to get past this?

    Help, I have forgotten my Apple ID security questions and when i send it to my email address to reset the questions nothing shows up in inbox. Any other way to get past this?

    You've checked the spam folder on your rescue email account as well as the inbox, and you've tried clicking the reset link a second time ? If you have, and you still haven't received the email, then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699

  • Help, I have forgotten my Apple ID security questions and when i send it to my email address to reset the questions nothing shows up in inbox. Any other way to get past this?

    Help, I have forgotten my Apple ID security questions and when i send it to my email address to reset the questions nothing shows up in inbox. Any other way to get past this?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.

  • Send Multiple Attachments

    I'm not being lazy, I have looked through many of the threads and don't seems to be able to find the answer to this query, if anyone can offer any assistance I'd be very grateful.
    I want to send email with multiple attachments and I'm taking advantages of the demo_mail functionality already in place. I can successfully send email with and attachment by passing in the file name from the wwv.flows table after I've uploaded the file. The problem is that I'm not sure how to pass multiple attachments. I imagine I would either be passing multiple file names or combining the blobs?
    Code as follows:
    procedure email_attachments_asis(
    p_sender varchar2, -- sender, example: 'Me '
    p_recipients varchar2, -- recipients, example: 'Someone '
    p_subject varchar2, -- subject
    p_body varchar2, -- body
    p_filename varchar2, -- name of pdf file
    p_blob blob, -- file(s)
    p_mime_type varchar2,
    p_number_to_attach number) is
    conn utl_smtp.connection;
    i number;
    len number;
    v_eol VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    conn := demo_mail.begin_mail(
    sender => p_sender,
    recipients => p_recipients,
    subject => p_subject,
    mime_type => demo_mail.MULTIPART_MIME_TYPE);
    if p_number_to_attach > 1 then
    demo_mail.attach_text(
    conn => conn,
    data => p_body,
    mime_type => p_mime_type);
    elsif p_number_to_attach = 1 then
    demo_mail.attach_text(
    conn => conn,
    data => p_body,
    mime_type => p_mime_type);
    end if;
    for counter in 1..p_number_to_attach loop
    demo_mail.begin_attachment(
    conn => conn,
    mime_type => p_mime_type,
    inline => TRUE,
    filename => p_filename,
    transfer_enc => 'base64');
    -- split the Base64 encoded attachment into multiple lines
    i := 1;
    len := DBMS_LOB.getLength(p_blob);
    WHILE (i < len) LOOP
    IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
    UTL_SMTP.Write_Raw_Data (conn
    , UTL_ENCODE.Base64_Encode(
    DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
    ELSE
    UTL_SMTP.Write_Raw_Data (conn
    , UTL_ENCODE.Base64_Encode(
    DBMS_LOB.Substr(p_blob, (len - i)+1, i)));
    END IF;
    UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
    i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
    END LOOP;
    end loop;
    demo_mail.end_attachment(conn => conn);
    demo_mail.end_mail( conn => conn );
    END email_attachments_asis;

    The method I would use is:
    1) Write a utility function that accepts a SQL cursor, converts it to XML and applies a XSL stylesheet to convert it to an HTML table and return the result as a CLOB. An example that I based code on is here. My modified example that accepts the stylesheet is at the end.
    2) For each report, run the function and attach it to the email.
    FUNCTION    FNCREFCURSOR2XML
    (  p_refCursor SYS_REFCURSOR,
       p_stlsht    CLOB,
       p_parms     VARCHAR2 default null)
    RETURN CLOB
    IS
    lRetVal      CLOB;
    lHTMLOutput  XMLType;
    lXMLData     XMLType;
    lContext     DBMS_XMLGEN.CTXHANDLE;
    stringarg    varchar2(200);
       BEGIN
       -- get a handle on the ref cursor --
       lContext := DBMS_XMLGEN.NEWCONTEXT(p_refCursor);
       -- setNullHandling to 1 (or 2) to allow null columns to be displayed --
       DBMS_XMLGEN.setNullHandling(lContext,1);
       -- create XML from ref cursor --
       lXMLData := DBMS_XMLGEN.GETXMLTYPE(lContext,DBMS_XMLGEN.NONE);
       if lXMLData is null then
         DBMS_XMLGEN.CLOSECONTEXT(lContext);
         close p_refCursor;
         return null;
       end if;
       DBMS_OUTPUT.PUT_LINE('xmldata = ' || lXMLData.getStringVal());
       -- XSL transformation to convert XML to HTML --
       --stringarg:=regexp_replace(p_parms,'"([[:alnum:][:space:]]*)"','"string(' || '''' || '\1' || '''' || ')"',1,0,'m');
       lHTMLOutput := lXMLData.transform(XMLType(p_stlsht),p_parms);
       -- convert XMLType to Clob --
       lRetVal := dbms_xmlgen.convert(lHTMLOutput.getClobVal(),DBMS_XMLGEN.ENTITY_DECODE );
       --lRetVal := lHTMLOutput.getClobVal();
       lRetVal := regexp_replace(lRetVal,'_x0020_',' ',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'_x0026_','&',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'_x003C_','<',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'_x002F_','/',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'_x003E_','>',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'>','>',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'<','<',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'"','"',1,0,'m');
       lRetVal := regexp_replace(lRetVal,'&','&',1,0,'m');
       --lRetVal := lHTMLOutput.getStringVal();
       DBMS_XMLGEN.CLOSECONTEXT(lContext);
       CLOSE p_refCursor;
       RETURN lRetVal;
    end fncRefCursor2XML;-----
    Example Stylesheet:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:param name="title"/>
    <xsl:param name="widthpx"  />
    <xsl:param name="widthpct"  />
    <xsl:template match="/">
    <div style="width:100%">
       <table border="1px" class="t16standard" style="border-collapse:collapse">
    <xsl:if test="string-length($widthpx) > 0">
      <xsl:attribute name="width">
         <xsl:value-of select="$widthpx"/>px
      </xsl:attribute>
    </xsl:if>
    <xsl:if test="string-length($widthpct) > 0">
      <xsl:attribute name="width">
         <xsl:value-of select="$widthpct"/>%
      </xsl:attribute>
    </xsl:if>
      <xsl:if test='string-length($title) > 0 '>
         <tr>
           <th style="font-size:14px;background:#9DB8D2">
             <xsl:attribute name="colspan">
               <xsl:value-of select="count(/ROWSET/ROW[1]/*)"/>
             </xsl:attribute>
             <xsl:attribute name="align">center</xsl:attribute>
           <xsl:value-of select="translate($title,'_',' ')"/>
          </th>
         </tr>
      </xsl:if>
         <tr>
          <xsl:for-each select="/ROWSET/ROW[1]/*">
           <th class="t16ReportHeader"><xsl:value-of select="name()"/></th>
          </xsl:for-each>
         </tr>
         <xsl:for-each select="/ROWSET/*">
          <tr>
           <xsl:for-each select="./*">
            <td>
                   <xsl:choose>
                     <xsl:when test="string(@bgcolor)">
                       <xsl:attribute name="bgcolor">
                          <xsl:value-of select="@bgcolor" />
                       </xsl:attribute>
                     </xsl:when>
                     <xsl:otherwise>
    <xsl:attribute name="bgcolor">#FFFFFF</xsl:attribute>
                     </xsl:otherwise>
                   </xsl:choose>
                   <xsl:choose>
                     <xsl:when test="string(@style)">
                       <xsl:attribute name="style">
                          <xsl:value-of select="@style" />
                       </xsl:attribute>
                      </xsl:when>
                      <xsl:otherwise>
                       <xsl:attribute name="style">
                          padding:3px
                       </xsl:attribute>
                      </xsl:otherwise>
                    </xsl:choose>
                <xsl:value-of select="text()"/> </td>
           </xsl:for-each>
          </tr>
         </xsl:for-each>
       </table>
    </div>
    </xsl:template>
    </xsl:stylesheet>Edited by: Fairfax_Al on Apr 15, 2009 4:17 PM

  • How can I send multiple attachments using SO_DYNP_OBJECT_SEND?

    Hi,
    I hope someone can offer advice on my problem.
    My requirement is to allow users to select one or more documents from an ALV grid.  I am then required to send these documents to multiple users via email using function module SO_DYNP_OBJECT_SEND.
    I can successfully send one document as an attachment.  However, I can't seem to figure out how to send multiple documents as attachments using SO_DYNP_OBJECT_SEND.  Is this done in the packing list?
    Is there some way to tell the program where the 1st attachment ends and the 2nd attachment starts?
    My attachment content is in i_att_cont.
      CALL FUNCTION 'SO_DYNP_OBJECT_SEND'
        EXPORTING
          object_hd_change = l_title
          object_type      = 'RAW'
          raw_editor       = abap_true
          starting_at_x    = '5'
          starting_at_y    = '1'
          ending_at_x      = '120'
          ending_at_y      = '20'
          edit_title       = 'X'
          external_commit  = abap_true
        TABLES
          objcont          = i_objcont
          rec_tab          = i_rec_tab
          packing_list     = i_packing_list
          att_cont         = i_att_cont
          exclude_fcode    = i_exclude_fcode
        EXCEPTIONS
          object_not_sent  = 1
          owner_not_exist  = 2
          parameter_error  = 3
          OTHERS           = 4.
    If you require more information, please let me know.  I will be happy to provide it.
    Thanks.

    I finally found the solution.
    The trick is to ensure you put the correct values in the body_start, body_num and objlen fields of the packing list.
    Each additional attachment should start (body_start) at the end of the last attachment + 1.
    The value for body_num is equal to the number of lines in the attachment being added.
    And the objlen field is calculated by multiplying the number of lines in the attachent * 255.
    Static data
       gs_packing_list-file_ext = lv_ext.
       gs_packing_list-transf_bin = 'X'.
       gs_packing_list-objla = sy-langu.
       gs_packing_list-objtp = 'EXT'.
       gs_packing_list-objdes = lv_filename.
       gs_packing_list-objnam = 'Attachment'.
       gs_packing_list-head_start = 1.
       gs_packing_list-head_num = 1.
    Body Start
       CLEAR lv_count.
       DESCRIBE TABLE gt_temp_att_cont LINES lv_count.
       gs_packing_list-body_start = lv_count + 1.
    Body Num + Object Length
       CLEAR lv_count.
       DESCRIBE TABLE gt_att_cont LINES lv_count.
       gs_packing_list-body_num = lv_count.
       gs_packing_list-objlen = lv_count * 255.
       APPEND gs_packing_list TO gt_packing_list.
    Hopefully this helps some desperate soul in the future.

  • Query related to multiple attachments in mail adapter

    Hi,
    I have a query related to multiple attachments in receiver mail adapter.
    I have successfully configured mail related scenarios but now I have another requirement in which I have multiple source files in one directory and I want to send one mail for multiple files as mail attachment using receiver mail adapter. Can anybody help me how to achieve multiple attachments in reciever mail adapter.
    To clarify the requirement more let us take an example
    Ex: I have 5 input files in the source which I pick up using additional files option in the sender file adapter, now I want to send those 5 files into one mail with 5 attachments. Can anybody explain how 5 different payload will be sent as multiple attachments in one mail.
    For your information I used, options like "keep attachments" , some parameters in module processesors etcs...but not able to find out as how exactly it will be achieved.......I dont want to use BPM collect pattern for this.....
    Need your help on this issue. Please suggest the solution as how it can be achieved using receiver mail adapter.
    Thanks & Regards
    Prabhat

    Hi,
    I resolved the issue on my own. Thanks for your help and support.
    Thanks & Regards
    Prabhat

  • How to send multiple attachments thru mail?

    I haven't been able to figure out how from the mail application send docs, worksheets etc as attachment. Also how to attach multiple docs in the mail. Looking for help on this.
    Sparashar

    You need to start in the app that contains the files that you want to send as attachments and use that app's functionality to select and attach files to an email, and not start in the Mail app e.g. the GoodReader app supports multiple document types (word and excel, read only, PDFs, text files, pictures) and allows you to select one or more of them and attach/switch with them to an email.
    In the Mail app itself on iOS 6 you can now press and hold the body of the email and select photos from the Photos app to attach to it.

  • How to send multiple attachments?

    Sorry if this seems like an obvious question but can it be done? Do I need an extra app or helper?
    Thanks in advance

    Ernie,
    I have had problems with sending some attachments to windows users.
    i cant tell exactly what is causing it.
    usually i am making .pages documents which i then export as PDFs.
    many times windows users email me back that they cant even see the attached PDFs (not not open them, but cant even see them).
    there seems to be some sort of bug. (yes, attach as windows friendly documents is selected).
    some have suggested that attaching multiple attachments using the command click method might be at fault.
    others have suggested that exporting to pdf might be a problem and the resulting pdf not always readable by windows users.
    can you give any suggestion that might ensure windows users can always open my attached PDFs?
    thanks

Maybe you are looking for

  • How to quckly echo part of a phrase twice in 7.2 Pro?

    I've got a vocal track of the Christmas carol "Do You Hear What I Hear? I'd like to be able to echo the 'what I hear' twice, each copy slightly delayed. I tried making a copy of the track, creating a region for just the 'what I hear' part, and making

  • MFC80U.DLL headache

    Hi, I'm having trouble resolving an APPCRASH issue involving MFC80U.DLL Have scoured the internet and it so far appears that my only route to resolution is to pay £199 for MS to fix it for me (or send me the hotfix, however it works).  I've also call

  • Does iWeb blogging (comments, etc.) only work when published to .Mac?

    The subject says it all, but I was wondering how well the blog features of iWeb work when publishing to a non-.Mac host. Right now I use WordPress for my blog. Is iWeb's blog feature a reasonable alternative? doug

  • BP Catalog numbers and Item Codes Display

    Hello Is there any way that BP catalog numbers and item codes can be display together. Or is there any work around available. I have a client who wishes to use i.e view both  the item code and the BP Cat Number on their screen.., we create a formatte

  • Some N95 issues

    I am a Singapore user, recently (about 1 month) bought an N95, the non-8GB version. Then I read on some reviews about the new 8GB version, in comparison with the older 4GB version. I tried to look for built-in phone memory size, but can't find. I don