Gmail access through Mail : Attachment name and extension terminated

When I try to send an attachment through Gmail using Mail, if the attachment names have more than one word with spaces in them, the entire name is terminated to the first few letters before the space and the file extension is lost too; so the recipients end up having incomplete file names without any extension. The files transfer perfectly and once the extensions are put in, they open without a problem. Receiving attachments where the names have spaces etc. is not a problem at my end though.
Any idea what I should tweak?
Thanks.

All updates are installed regularly, so I am indeed at the newest version of all available software. I just haven't updated my signature here.
And the name of the attachment is mangled only when I use the client to send an attachment to any other Gmail account ( both Windows or Mac, accessed either through a client or directly at the receiving end). The same email cc'd to my school address shows the entire file name. And if I send the email through Gmail directly, then it is fine too, as I mentioned.
Message was edited by: Deep Blue to change the OS version.

Similar Messages

  • B2B outbound Channel Configuration - EMail - Attachment Name and Extension

    Hello,
    I have configured an outbound channel to send the payload (xml) as an attachment. When I leave the "Subject" field in the Channel configuration blank, the attachment file name looks like this,"HostPartnerName_TradingPartnerName_DocumentType" without the file extension. If I supply the "Subject" field with the value, the file name gets replaced with the subject and the file extension still is missing.
    I would like to receive a file name in a format like "batch_b2b.messageId.xml". The property b2b.messageId gets the value from the Mediator. The composite that passes the information like the b2b properties has been made generic to handle different Trading Partners, so for a channel that uses SFTP, I have used the Filename format and supplied the value as "batch_%MSG_ID%.xml". Is there a way I can do the same for Email channel?
    Thanks,
    Venkatesh

    Hi Venkatesh,
    Attachment name can be set from the middleware using below header (as per the mode of integration used) -
    1. For AQ mode of integration, use actionName -
    actionName=ATTACHMENT_NAME:test.txt
    2. For JMS mode of integration use custom JMS header - jca.jms.JMSProperty.ATTACHMENT_NAME to populate the name.
    3. For fabric (default) mode of integration, use b2b.attachmentName header
    Regards,
    Anuj

  • Get Attachment Name and from address of mail in bpel process

    Hi All,
    I am using UMS Adapter to poll email server and  getting the attachment and saving it to local disk.
    In Payload from UMS adapter  i am getting href of the attachment  but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
    please guide me in getting them .
    Thanks in Advance
    Divyanshu

    1. Double click on your composite receive activity.
    2. Go to Properties tab in your receive activity.
    3. Click "+".
    4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
    5. Click OK.
    6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
    you are good to go.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • Name and extension network volume - problem

    Hi all,
    I am 10.7.5 and when I get my network volumes the system I added an extension to the volume name!
    example:
    volume name: Music
    in name and extension: Music-2
    Why am I adding -2??
    and how to no longer be
    Thank you for your help

    All updates are installed regularly, so I am indeed at the newest version of all available software. I just haven't updated my signature here.
    And the name of the attachment is mangled only when I use the client to send an attachment to any other Gmail account ( both Windows or Mac, accessed either through a client or directly at the receiving end). The same email cc'd to my school address shows the entire file name. And if I send the email through Gmail directly, then it is fine too, as I mentioned.
    Message was edited by: Deep Blue to change the OS version.

  • DMS - file name and extension

    Hi everybody,
    I will appreciate if somebody could tell me how to read the file name and extension of already uploaded to DMS document (a function module will be best but name of db table is ok too). Is this information stored in SAP DB at all?
    Thanks
    Ogniana

    Check
    http://help.sap.com/saphelp_erp2004/helpdata/en/c6/893d55449311d1893e0000e8323c4f/content.htm
    Regards,
    Santosh

  • Changing file multiple file names and extensions

    hi all
    i have just converted a couple of files with some software, but it hasnt put the file extension on, does anyone know of a way to automatically change them, they are already mp4 files but missing the .mp4 on the name part, can anyone help me out to change it without having to manually type it into every single file as that will take me ages now, but i do know for next time when i use this software.
    adam

    Just a warning: are you sure the extension is missing ? in some cases the extension is in the file name but it is hidden (it's used by the system and is exported but you don't see it in the finder).
    In order to check it, in the Finder you can select the file icon, and use the Get Info command (cmd-I): when existing the extension can be read in the "Name and Extension" field, but if the Hide Extension option is set, that extension for that file will be hidden in the finder windows.
    Piero

  • Mail attachment drag and drop issue

    Been facing serious mail attachment drag-and-drop issue since 10.8 (if not from 10.7) and was disappointed to find the same behaviour still in 10.9.
    When I drag and drop a picture file (from Finder for example) into a message window or onto the Mail.app Dock icon, the system's window management somehow gets confused: my next step is to click on the message window in order to start typing. However, the mouse click causes that very window to escape under all other open applications / windows. Further on, I dig under to find the escapee and click again: once more it escapes. This can go on for a few annoying rounds until gets solved in an unexplainable way. This behaviour in not consistent, but has happens in about 8 cases out of 10.
    Apart from Mail.app I do not experience drag and drop issues of any kind.
    Anyone else suffering from this?

    I'd be interested in the answer to this too.
    It only just started happening to me a day or so ago, about the time that I think I did an OS upgrade.
    I'm on OSX 10.8.2.
    Its annoying.
    I can drop and drag in Finder but it just affects email.

  • Hi, I have private emails in IPAD2, i have chaged the incoming mail server name and saved the change.

    Hi, I have private emails in IPAD2, i have chaged the incoming mail server name and saved the change.
    but, when I back to read my old emails in inbox it's gone away, I have backed to setting and return the previous
    incoming mail name, but also I did't get the old emails. where I can find the old emails in my IPAD2 ?

    It is only the link to your emails which are 'stored' on your iPad. You will have to enter all proper email addresses to get the message associated with them, which, in practice,  means multiple accounts. If all still does not work try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release].

  • SENDING REPORTS O/P THRU E-MAIL: ATTACHMENT NAME NOT VISIBLE

    Hi,
    I have created a report program which will convert report o/p to excel sheet and send the attachment to the mail id provided in the selection screen. Here in this case the mail is going perfectly, and the attachment also but the problem is the attachment name is not visble.
    From the program it is expected that the attachment name is delivery.xls. but in the mail it is showing only .xls...
    here is the code I used. Please correct me...
    REPORT  ZRAM.
    TABLES: LIPS.
    DATA: BEGIN OF IT_LIPS OCCURS 0,
            VBELN LIKE LIPS-VBELN,
            POSNR LIKE LIPS-POSNR,
            MATNR LIKE LIPS-MATNR,
            WERKS LIKE LIPS-WERKS,
          END OF IT_LIPS.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    SELECT-OPTIONS: S_VBELN FOR LIPS-VBELN.
    PARAMETERS : P_EMAIL TYPE somlreci1-receiver lower case DEFAULT
    '[email protected]'.
    SELECT VBELN POSNR MATNR WERKS
           FROM LIPS INTO TABLE IT_LIPS
           WHERE VBELN IN S_VBELN.
    PERFORM build_xls_data_table.
    perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using p_email
                                          'Delivery details'
                                          'XLS'
                                          'delivery'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
    CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
                con_tab TYPE x VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    class cl_abap_char_utilities definition load.
    constants:
        con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
        con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'VBELN' 'POSNR' 'MATNR' 'WERKS'
             INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_LIPS.
        CONCATENATE IT_LIPS-VBELN IT_LIPS-POSNR
                    IT_LIPS-MATNR IT_LIPS-WERKS
               INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test lips records'.
      APPEND it_message.
    endform.                    " POPULATE_EMAIL_MESSAGE_BODY

    Hi
      check the blow code:
    DATA:   receiver LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    MESSAGE ZF100 (FTP an UDB fehlgeschlagen)
      text-msgid = msgid.
      text-msgno = msgno.
      text-msgv1 = msgv1.
      text-msgv2 = ' '.
      text-msgv3 = ' '.
      text-msgv4 = ' '.
    express_hold_time
      express_hold_time-days = 01.
      express_hold_time-h_min_sec = 240000.
    receiver
      receiver-receiver = mreceivr.
    Gruppe von Empfängern
      receiver-rec_type = 'C'.
    und Expressmeldung ausgeben
      receiver-express  = 'X'.
      APPEND receiver.
      CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
           EXPORTING
                msgid     = text-msgid
                msgno     = text-msgno
                msgv1     = text-msgv1
                msgv2     = text-msgv2
                msgv3     = text-msgv3
           TABLES
                receivers = receiver.
      IF sy-subrc <> 0.
        WRITE:/ 'hat nicht geklappt', 'SY-SUBRC =', sy-subrc.
      ENDIF.

  • Gmail access on Mail

    Hi Everyone;
    I know how to create a email profile on OSX Mail to access GMail. My question is if the GMail mail will be downloaded locally to my machine or will it remain on the Google servers. I WANT it to remain on the servers, ie I only want to access my emails through Mail. Otherwise most of my HDD will fill up with email and also I will not be able to access my emails when I do not have my machine on hand.
    Assuming that the above can be managed, what happens when I delete an email in Mail? Will it also get deleted in GMail? That is an acceptable behavior.
    Your input is appreciated.
    Regards

    Depends on whether you set it up as a POP or IMAP account
    POP is useless (unless you only have one email client, no iPhone etc) IMAP synchronises the folders, so choose the Gmail folders you need to synchronise.
    My question is if the GMail mail will be downloaded locally to my machine or will it remain on the Google servers. I WANT it to remain on the servers,
    If you set the account up as an IMAP account the server and the client will synchronise, all mail will be (a) on the server and (b) on your Mac.
    Assuming that the above can be managed, what happens when I delete an email in Mail? Will it also get deleted in GMail? That is an acceptable behavior.
    Your input is appreciated.
    Regards
    The 'above' can't be 'managed', if you subscribe to a folder in Mail (e.g.: Inbox) the content will be on your Mac and on Gmail's server, if you delete that email (in any location) you have deleted the email so it will vanish from all clients and the server.

  • Need to get the Mail attachment name as it is to the receiver file adapter

    I am doing a Mail to File scenario. I need to get the attachment from the mail and store it on the file server. I am using the PayloadSwap bean in the sender mail adapter. My requirement is to carry forward the attachement name as it is to the receiver file adapter side and store the file with the same name.
    Did any one try doing this? I was looking at developing an adapter module but got struck as I could not find whether the attachement name is stored in the XI payload after it has got swapped using the swap bean.
    Any help would be appreciated.
    VJ

    Oops pressed the send key. Take two.
    This is becoming a damn nightmare. When I run the adapter I am getting ModuleExceptions. Can you pass your eyes over these Java config settings to see what I am doing wrong. Using NWDS CE 7.1 with PI 7.1 both at SP07. All the imports were taken from PI 7.1 after SP07 was applied. The build id of NWDS is
    SAP NetWeaver Developer Studio
    SAP NetWeaver 7.1 Composition Environment SP07 PAT0001
    Build id: 200901152336
    APPLICATION.XML
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
    <display-name>MailPOP_EAR</display-name>
    <description>EAR description</description>
    <module>
    <ejb>MailPOP_EJB.jar</ejb>
    </module>
    </application>
    APPLICATION-J2EE-ENGINE.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
    <application-j2ee-engine>
    <reference reference-type="hard">
    <reference-target provider-name="sap.com" target-type="service">engine.security.facade</reference-target>
    </reference>
    <reference reference-type="hard">
    <reference-target provider-name="sap.com" target-type="library">engine.j2ee14.facade</reference-target>
    </reference>
    <reference reference-type="hard">
    <reference-target provider-name="sap.com" target-type="service">com.sap.aii.af.svc.facade</reference-target>
    </reference>
    <reference reference-type="hard">
    <reference-target provider-name="sap.com" target-type="interface">com.sap.aii.af.ifc.facade</reference-target>
    </reference>
    <reference reference-type="hard">
    <reference-target provider-name="sap.com" target-type="library">com.sap.aii.af.lib.facade</reference-target>
    </reference>
    <reference reference-type="hard">
    <reference-target provider-name="sap.com" target-type="library">com.sap.base.technology.facade</reference-target>
    </reference>
    <fail-over-enable mode="disable" />
    </application-j2ee-engine>
    EJB-J2EE-ENGINE.XML
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd">
    <ejb-j2ee-engine>
    <enterprise-beans>
    <enterprise-bean>
    <ejb-name>GetMailAttachment</ejb-name>
    <jndi-name>GetMailAttachment</jndi-name>
    <session-props/>
    </enterprise-bean>
    </enterprise-beans>
    </ejb-j2ee-engine>
    EJB-JAR.XML
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
    2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <description>EJB JAR description</description>
    <display-name>EJB JAR</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>GetMailAttachment</ejb-name>
    <home>com.sap.aii.af.lib.mp.module.ModuleHome</home>
    <remote>com.sap.aii.af.lib.mp.module.ModuleRemote</remote>
    <local-home>com.sap.aii.af.lib.mp.module.ModuleLocalHome</local-home>
    <local>com.sap.aii.af.lib.mp.module.ModuleLocal</local>
    <ejb-class>sample.GetMailAttachment</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    SENDER MAIL ADAPTER modules
    1 AF_Modules/PayloadSwapBean Local EB 1
    2 GetMailAttachment Local EB 2
    3 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local EB 3
    1     swap.keyName          payload-name
    1     swap.keyValue          MailAttachment-1
    RECEIVER FILE MODULES
    1     localejbs/AF_Modules/DynamicConfigurationBean     Local Enterprise Bean     1
    2     localejbs/CallSapAdapter                    Local Enterprise Bean     2
    1     key.0          write http://sap.com/xi/XI/System/File FileName
    1     value.0          message.interface
    VARIABLE FILENAME SUBST WITH ASMA TURNED ON
    fName     message:interface_name
    JAVA SOURCE
    package sample;
    import javax.ejb.CreateException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import com.sap.aii.af.lib.mp.module.Module;
    import com.sap.aii.af.lib.mp.module.ModuleContext;
    import com.sap.aii.af.lib.mp.module.ModuleData;
    import com.sap.aii.af.lib.mp.module.ModuleException;
    import com.sap.engine.interfaces.messaging.api.Message;
    import com.sap.engine.interfaces.messaging.api.MessagePropertyKey;
    import com.sap.engine.interfaces.messaging.api.TextPayload;
    import com.sap.engine.interfaces.messaging.api.XMLPayload;
    import com.sap.aii.af.service.cpa.Channel;
    @ejbHome <{com.sap.aii.af.lib.mp.module.ModuleHome}>
    @ejbLocal <{com.sap.aii.af.lib.mp.module.ModuleLocal}>
    @ejbLocalHome <{com.sap.aii.af.lib.mp.module.ModuleLocalHome}>
    @ejbRemote <{com.sap.aii.af.lib.mp.module.ModuleRemote}>
    @stateless
    <code>GetMailAttachment</code>
    @SuppressWarnings("unused")
    public class GetMailAttachment implements SessionBean, Module {
         private static final long serialVersionUID = 7612238514043673502L;
         private SessionContext myContext;
         private MessagePropertyKey myFileName;
         public void ejbRemove() {
         public void ejbActivate() {
         public void ejbPassivate() {
         public void setSessionContext(SessionContext context) {
              myContext = context;
    @throws CreateException
         public void ejbCreate() throws CreateException {
         public void getMessageProperty(MessagePropertyKey FileName) {
              myFileName = FileName;
    @param moduleContext
               Contains data of the module processor that might be important
               for the module implementation such as current channel ID
    @param inputModuleData
               Contains the input XI message as principal data plus eventual
               set supplemental data
    @return ModuleData Contains the (changed) output XI message. Might be the
            response message if the module is the last in the chain.
    @exception ModuleException
                   Describes the cause of the exception and indicates whether
                   an retry is sensible or not.
         @SuppressWarnings("deprecation")
         public ModuleData process(ModuleContext moduleContext,
                   ModuleData inputModuleData) throws ModuleException {
              try {
                   Message msg = (Message) inputModuleData.getPrincipalData();
                   TextPayload payload = msg.getDocument();
                   String contentType = payload.getContentType();
                   // Content Type could be something like
                   // text/plain;charset="UTF-8";name="file.txt"
                   contentType = contentType.replaceAll("\"", "");
                   int i = contentType.lastIndexOf("=") + 1;
                   String fileName = contentType.substring(i);
                   msg.setMessageProperty(myFileName, fileName);
                   inputModuleData.setPrincipalData(msg);
              } catch (Exception e) {
              return inputModuleData;
    JAVA ERRORS
    2009-02-04 11:41:14     Information     Mail: calling the module processor for channel LMK_Common_Mail_Sender
    2009-02-04 11:41:14     Information     Swap: swapping by payload-name ? MailAttachment-1
    2009-02-04 11:41:14     Information     Swap: successfully swapped
    2009-02-04 11:41:14     Information     Mail: message leaving the adapter (call)
    2009-02-04 11:41:14     Information     The application tries to send an XI message asynchronously using connection AFW.
    2009-02-04 11:41:14     Information     Backward validation is enabled
    2009-02-04 11:41:14     Error     Unable to validate the message with message ID 8702df71-f254-11dd-9b9b-001a64a73518
    2009-02-04 11:41:14     Error     Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Content is not allowed in prolog.
    2009-02-04 11:41:14     Error     Mail: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Content is not allowed in prolog.
    2009-02-04 11:41:14     Error     Mail: error occured: com.sap.aii.af.lib.mp.module.ModuleException

  • Mail Attachment Name

    Hi,
    I am using File to Mail scenario. There is no mapping, it uses dummy Interfaces. I have Adapter Module at the Receiver in Mail to dynamically get the filename and set it as the attachment name.
    Following is the module code. The problem with the code is I get 2 attachments in the mail, One with proper file name as desired and the 2nd attachment as "Untitled.xml". Need to get rid of this Untitled.xml. Note: Keep attachments is Checked as I need the file in attachment.
    Message msg = (Message) inputModuleData.getPrincipalData();     
                   XMLPayload xmlpayload = msg.getDocument();
                   String strfileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
                   byte by[] =  xmlpayload.getText().getBytes();
                   xmlpayload.setName(strfileName);
                   xmlpayload.setContentType("text/xml");
                   xmlpayload.setContent(by);
                   msg.addAttachment(xmlpayload);
                   inputModuleData.setPrincipalData(msg);

    Create an UDF and mention the key and the value of the file name you wish
    public void DynamicFilename(String[] a,String[] b,ResultList result,Container container){
      //write your code here
    AbstractTrace trace = container.getTrace();
    String strDirectory=" ";
    String strFileName="";
    try
         Map map= container.getTransformationParameters();
         //This is for generating the file Direcotry Dynamically
         DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
    (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
         DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
         DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File",
    "FileName");
    strDirectory= "/xxx/xxx/xx";
    strFileName= b[0] + b[2] + b[1]+ ".XML";
    trace.addWarning("strDirectory " +strFileName);     
    conf.put(key, strDirectory);
    conf.put(key1, strFileName);
    result.addValue(b[0]);
    catch(Exception ex)
    trace.addWarning("Catch Block " );
    Edited by: Sainath Chutke on Jan 16, 2009 10:19 AM

  • Change e-mail attachment name dynamic in Broadcaster

    Hi,
    I want to send an e-mail to multiple recipient by the setting "e-mail bursting" in broadcaster. Each e-mail has an attachment (pdf-document).
    Is it possible, to change the name of the attachment dynamic, when sending the mail to the different recipients (example:
    recipient 1: recipient1.pdf,
    recipient 2: recipient2.pdf,
    and so on)
    I tried a solution with text variables, but it didn't work.
    Regards,
    Tim Jaschik

    Hi,
    thanks for your fast answer. But my problem is to change the attachment name of the e-mail, not to schedule the e-mail.
    So, is there no possibility to control the process which creates the attachment name?
    Regards,
    Tim

  • E-mail Attachment Name Changes

    I have a following problem with mail attachments: When I drag the attachment from my mail window onto my desktop, the attachment name changes to "unknown". So for example, "cat.jpg" would become "unknown.jpg". To make this a bit more complicated, the problem is a bit random and from this it follows that sometimes the file keeps the original and correct file name and sometimes it changes it. Also, this problem occurs only when I drag the attachment (which normally is image) from email window, but if I pull the attachment from above the message window, where it has a little arrow and it shows all the attachment icons, this problem does not happen. I am running Tiger and Mail 2.1. It would we really great if you could take a sec to answer this if you have any idea at all what this problem might to be. Thanks!
    Best, Rauno

    Hi Rauno, and a warm welcome to the forums!
    Hmmm, since it's random, might try this...
    Quit Mail, then In your home folder, try moving this +folder & file+ to the Desktop then reboot...
    First, Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these files to the Desktop.
    /Users/YourUserName/Library/Caches/Mail
    Move to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    You can always move them back if it doesn't help.

  • Multiple Mail attachment (PDF and Excel) in a single mail

    Please help me to send the PDF and Excel attachment in the single mail. I am using the FM for PDF is 'SO_NEW_DOCUMENT_ATT_SEND_API1' and for Excel 'SO_DOCUMENT_SEND_API1'. Currently the program sends 2 different attachments for PDF and Excel.
    Thanks in Advance.

    Hi,
    If you want to send multiple attachments in a single mail then i would suggest to use
    CL_BCS for achieving it.
    Look at standard program BCS_EXAMPLE_6 for more clarity.
    There you find this statement of code
    document1 = cl_document_bcs=>create_document
    After creating one document using this you can use the same statement again and create another document.
    document2 = cl_document_bcs=>create_document
    Both documents should have different name.
    Then use
    send_request->set_document( document1 ).
    send_request->set_document( document2 ).
    This will attach both the documents to a single email.
    Hope this helps.
    Regards,
    -Sandeep

Maybe you are looking for

  • Lost mail and password however I am still logged n...

    Please I lost both mail and password, I never purchased anything from Skype. However I am still logged on my iPad I don't want to lose this account. Please help me with this.

  • Trying to understand the views for monitoring streams

    Hi, All of the columns with a measurement of elapsed_time in the following views have NUMBER as the datatype. Can someone help with me with what the actual measurement is for these field as it's definatley no seconds or milliseconds: v$streams_captur

  • Installing Windows 7 64bit?

    Hello, everyone first post on here . Umm, ok so I went through the boot camp setup etc, everything works fine and it reboots. However when it reboots it goes to a black screen and says choose boot type 1 or 2. Yet, it doesn't have any words beside th

  • Urgent How to connect sql plus from spx network

    My lsnrctrl is giving error show below Starting tnslsnr: please wait... TNSLSNR for 32-bit Windows: Version 2.3.2.1.0 - Production System parameter file is D:\ORAWIN95\network\admin\listener.ora Log messages written to D:\ORAWIN95\network\log\listene

  • Crystal Report Formula - Remove First Word

    I am looking for a formula to remove the first WORD from a field.