PI 7.1 Email Attachment binary file

Hi,
I am trying to attach a binary (encrypted) file to a regular mapped email (receiver adapter) before sending it.
It is similiar to attach pdf-files at the end of a mapping process.
Is there no way to attach binary files other than writing an adapter module?
Is there no generic "Attach File" module in PI 7.11?
I tried ASMA with XSLT, but the problem is, that the file is binary and the sender adapter would not read it without xml-format.
Any good idea?
thanks
hs

Hi Holger,
Just a suggestion:
1. Read the binary file using file adapter (in binary mode)
2. use a mail package and put the read content into the Content node of it. You can use this java mapping for it
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import com.sap.aii.mapping.api.AbstractTransformation;
import  com.sap.aii.mapping.api.DynamicConfiguration;
import com.sap.aii.mapping.api.DynamicConfigurationKey;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
import com.sap.aii.mapping.api.InputHeader;
public class JavaMapping extends AbstractTransformation {
     public void transform(TransformationInput arg0, TransformationOutput arg1) throws StreamTransformationException {
     getTrace().addInfo("JAVA Mapping Called");
     //Input payload is obtained by using arg0.getInputPayload().getInputStream()
     String inData = convertStreamToString(arg0.getInputPayload().getInputStream());
     String outData = inData
     try
     //8. The JAVA mapping output payload is returned using the TransformationOutput class
     // arg1.getOutputPayload().getOutputStream()
          arg1.getOutputPayload().getOutputStream().write(outData.getBytes("UTF-8"));
     catch(Exception exception1) { }
     public String convertStreamToString(InputStream in){
     StringBuffer sb = new StringBuffer();
     try
     InputStreamReader isr = new InputStreamReader(in);
     Reader reader =
     new BufferedReader(isr);
     int ch;
     while((ch = in.read()) > -1) {
          sb.append((char)ch);}
          reader.close();
     catch(Exception exception) { }
     return sb.toString();
Then provide the filename dynamically into the ContentType of the mail package.
I guess this should work.
Regards
Suraj

Similar Messages

  • Converting html file into zip file and send email attaching zip file

    Hi Experts,
    I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
    So, Now i need to compress the data for less than 7MB.
    I decided to convert HTML File into ZIP File.
    Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
    Correct answer rewarded,
    Thanks & Regards,
    N. HARISH KUMAR

    Hi Experts,
    *// HTML_TAB converting into ZIP File
       DATA  : zip_tool TYPE REF TO cl_abap_zip,
               filename TYPE string ,
               filename_zip TYPE string .
       DATA  : t_data_tab TYPE TABLE OF x255,
               bin_size TYPE i,
               buffer_x TYPE xstring,
               buffer_zip TYPE xstring.
    filename = text-007.                                                                          "'HTML_TAB
    *describe the attachment
       DESCRIBE TABLE html_tab LINES tab_lines.
       bin_size = tab_lines * 255.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length = bin_size
         IMPORTING
           buffer       = buffer_x
         TABLES
           binary_tab   = html_tab.
       IF sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    *create zip tool
       CREATE OBJECT zip_tool.
    *add binary file
       CALL METHOD zip_tool->add
         EXPORTING
           name    = 'FSSAI_MAIL.HTML'
           content = buffer_x.
    *get binary ZIP file
       CALL METHOD zip_tool->save
         RECEIVING
           zip = buffer_zip.
       CLEAR: t_data_tab[],bin_size.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer        = buffer_zip
         IMPORTING
           output_length = bin_size
         TABLES
           binary_tab    = html_tab.
    Thanks & Regards,
    N. HARISH KUMAR

  • How to download email attachment video file or document file

    Hello
    i am unable to download MP4 video file from my gmail account to my Iphone6 plus.
    When i just press on email attachment it plays on line but no option for downloading
    only Open,Add in reading list & Copy options showing
    Do you have some solution for this

    Hello jlremington and welcome to the forums
    Depending on the email integration type and software running on the device
    will determine if you are able to use this feature.  Can I get the version
    of software that is on the device? This can be found under Options -
    About.  Also what type of email account are the messages coming
    from?  Are you using a BES account or BIS account?  If your are using a BIS account what type of
    integrations are you using? POP, IMAP, OWA, Gmail, Yahoo, Hotmail etc…
    Message Edited by SmoothRider on 07-14-2009 02:32 PM
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Emailing attached HTML file with embedded applet

    Are there any mail servers that could reject emails with attached HTML file that includes embedded applet in a Java Plug-in Object tags? It has an absolute path to a server where the applet resides.
    I have seen very few cases where Symantec Anti Virus filter is dropping the messages because of a mime problem. It appears that only two workarounds are to upgrade the Symantec product and to bypass our domain.
    Is there anything I could do to prevent the mime problem issue? I hope the Java applet is not an issue.
    John

    pberardi1,
    I hope you get better soon from the accident you must have had. Surely you must be in the hospital or something, otherwise by now surely you'd have had the courtesy to say a simple
    "Thank you".
    So,
    "You're welcome".

  • I have email-attached audio file. Cannot open, Suggestions?

    I have received an email from a PC, with attached audio file -non-music, non-movie. Am unable to open. System says Quickmail unable to open... that the Quickmail may need an extension.. As you can tell unfamiliar territory... Any suggestions ?

    What is the format (i.e. the suffix of the file)?
    x

  • IOS 4.2 email attachment word file not displaying the full document

    I have just downloaded iOS 4.2 and have noticed that an issue that bugged me on the iPad has now made it's way to my iPhone.
    Every day I receive an email with an A4 size word file attached, that contains a full page table. When I viewed the attachment on my iPad (running iOS 3.2) the last column of the table would be cut off. If I viewed the same file on my iPhone (running iOS 4 or earlier), I could see the whole document.
    The issue didn't annoy me when it was only on the iPad as it was more important for me to view the file on the iPhone, but now the issue has crossed over to the iPhone with the update to 4.2, the last column of the table in the document is being cut off. Changing the layout of the file is not an option.
    Any ideas?

    I am having the same issue, getting the message "Presentation can't be opened." since updating ipad and keynote to latest version.
    Have apple commented on this yet?

  • Email attachment - can't find the file

    I'm using Oracle 9 and I am trying to use it to send an email. I know the version of Oracle is important with this task since sending an email changed in Oracle 10, I think.
    I want it to go to the hard drive and find an attachment to send. I'm okay at SQL/PL and I'm reviewing someone else's code and trying to make it work for me. It sends the mail find, but it can't seem to find the file for the attachment. What is wrong with attaching the file here or the file path?
    thank you.
    daniel
    DECLARE
            v_From           VARCHAR2(80) := '[email protected]';
            v_Recipient     VARCHAR2(80) := '[email protected]';
            v_Subject       VARCHAR2(80) := 'To the moon - and beyond!';
            v_Mail_Host    VARCHAR2(30) := '10.0.31.20';
            v_Mail_Conn utl_smtp.Connection;
            crlf                VARCHAR2(2)  := chr(13)||chr(10);
            pivAttached    VARCHAR2(4000)   := 'C:\Documents and Settings\dkessler\My Documents\PERM\Other\sql_emails\Perm_sel_vw_form_cc_ltd_20110526.txt';
              lvDirectory       VARCHAR2(100);
              lvFileName        VARCHAR2(100);
              lvLine            VARCHAR2(1000);
              lvMessage         VARCHAR2(32767);
              lvCc              VARCHAR2(100);
              lnCcCount         NUMBER(8);
              lnLastSemiColon   NUMBER(8);
              lnCurSemiColon    NUMBER(8);     
              TYPE lTypeFile IS TABLE OF VARCHAR2(200)
                INDEX BY BINARY_INTEGER;
              lTabFile           lTypeFile;
              lvFileHandle       sys.UTL_FILE.FILE_TYPE;
              lvSlashPosition         NUMBER;
              lvMessageLength    NUMBER;
              leMessageTooLong   EXCEPTION;
              leInvalidPath      EXCEPTION;
              lvMessageLengthgthExceeded   BOOLEAN := FALSE;
              pinMaxSize    NUMBER DEFAULT 9999999999;
            --rpt_name varchar2(50);
    BEGIN
            v_Mail_Conn := utl_smtp.Open_Connection('10.0.31.20', 25);
            utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
            utl_smtp.Mail(v_Mail_Conn, v_From);
            utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
            --rpt_name:='Perm_sagitec2011_UPD_user_access_fix_'||to_char(sysdate,'YYYYMMDD')||'.xls';
            --demo_mail.begin_attachment(v_Mail_Conn => v_Mail_Conn,mime_type => 'Application/Excel', inline => TRUE, filename => rpt_name);
            utl_smtp.Data(v_Mail_Conn, 'Date: '   || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
                                                    'From: '   || '[email protected]' || crlf ||
                                                    'Subject: '|| v_Subject || crlf ||
                                                    'To: '     || v_Recipient || crlf ||
                                                     'Content-Type: multipart/mixed; boundary="DMW.Boundary.605592468"' || crlf ||
                                                      '--DMW.Boundary.605592468' || crlf ||
                                                      'Content-Type: text/plain; charset=US-ASCII' || crlf ||
                                                      'Content-Disposition: inline;' || crlf ||
                                                      'Content-Transfer-Encoding: 7bit' || crlf ||
                                                    crlf ||                                
                                                    'This is body text.'|| crlf
           --demo_mail.end_attachment(conn => conn);
                                         -- locate the final '/' or '\' in the pathname ...
                         BEGIN
                                 lvSlashPosition := INSTR(pivAttached, '/', -1 );
                                 IF lvSlashPosition = 0 THEN
                                    lvSlashPosition := INSTR(pivAttached, '\', -1 );
                                 END IF;
                                 -- separate the filename from the directory name ...
                                 lvDirectory     := SUBSTR(pivAttached, 1, lvSlashPosition - 1 );
                                 lvFileName      := SUBSTR(pivAttached, lvSlashPosition + 1 );
                                 -- open the file ...
                                 lvFileHandle := UTL_FILE.FOPEN(lvDirectory, lvFileName, 'r' );
                                 -- generate the MIME boundary line ...
                                 lvMessage := crlf || '--DMW.Boundary.605592468' || crlf ||
                                 'Content-Type: application/octet-stream; name="' || lvFileName || '"' || crlf ||
                                 'Content-Disposition: attachment; filename="' || lvFileName || '"' || crlf ||
                                 'Content-Transfer-Encoding: 7bit' || crlf || crlf ;
                                 lvMessageLength := lvMessageLength + LENGTH(lvMessage);
                                 utl_smtp.write_data ( v_Mail_Conn, lvMessage );
                                 -- and append the file contents to the end of the message ...
                                 LOOP
                                     UTL_FILE.GET_LINE(lvFileHandle, lvLine);
                                     IF lvMessageLength + LENGTH(lvLine) > pinMaxSize THEN
                                        lvMessage := '*** truncated ***' || crlf;
                                        utl_smtp.write_data ( v_Mail_Conn, lvMessage );
                                        lvMessageLengthgthExceeded := TRUE;
                                        RAISE leMessageTooLong;
                                     END IF;
                                     lvMessage := lvLine || crlf;
                                     utl_smtp.write_data ( v_Mail_Conn, lvMessage );
                                     lvMessageLength := lvMessageLength + LENGTH(lvMessage);
                                 END LOOP;
                              EXCEPTION
                                 WHEN NO_DATA_FOUND THEN
                                   NULL;
                                 WHEN UTL_FILE.INVALID_PATH THEN
                                   RAISE_APPLICATION_ERROR (-20101,'Invalid path while opening attachment '||pivAttached );
                                 WHEN OTHERS THEN 
                                   RAISE;
                              END;
                              lvMessage := crlf;
                              utl_smtp.write_data ( v_Mail_Conn, lvMessage );
                              -- close the file ...
                              UTL_FILE.FCLOSE(lvFileHandle);
           utl_smtp.Quit(v_mail_conn);
           --pivAttached
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
       raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    The important thing is that a file attachment does not mean pointing the mail API at a file and say "+attach thyself+".
    In technical terms, the attachment is simply another piece in the mail (aka MIME) body. There can be numerous "pieces" - separated by text boundary lines. Each piece with is own header and data.
    So an e-mail with an attachment does not mean mail arrives with a file piggybacking on it. It means a MIME body with multiple "pieces". Where one such "piece" is the uu-encoded contents of the file, with is header describing what the contents is.
    Depending on the mail API your code use, your code may need to construct this entire MIME (e-mail) body - including reading the original file, encoding it if binary, and inserting that as a "piece" into the MIME body.
    This you would do when for example using UTL_SMTP - as it only does the SMTP protocol part (the conversation with the mail server) and not the constructing MIME body part.
    If you for example use UTL_MAIL, it generates a (very basic/primitive) MIME body and uses UTL_SMTP to transmit it. UTL_MAIL expects you to pass the file contents to insert as a "piece" into the MIME body as a LOB. Not as a physical path or UNC that points to some file somewhere. Your code needs to read that content of the file into a LOB... and then call UTL_MAIL.
    As your code is PL/SQL, it is server side code. It runs inside an Oracle server process. If the file contents to attach is on the client, then that client (browser, Java, TOAD, .Net, Perl, whatever) needs to read that local file's content and use DBMS_LOB calls to instruct PL/SQL on the server to create a LOB containing that contents. Then the PL/SQL code can call UTL_MAIL and tell it to write the contents of that LOB into the MIME body of the e-mail.

  • Send email with txt file as attachment

    Hi ,
    can any one help me in download as txt file using the function module SO_OBJECT_SEND along with email .
    a sample code using this function module would be helpfull.
    Thanks,
    vinay .

    Hi vinay,
    Not only TXT file, u can send any
    other file like word,excel,pdf,exe, etc.
    1. There is some trick involved
    in the binary files.
    2. I have made a program (and it works fantastic)
    ONLY 6 LINES FOR EMAILING
    BELIEVE ME
    ITS A FANTASTIC PROGRAM.
    IT WILL WORK LIKE OUTLOOK EXPRESS !
    3. The user is provided with
    a) file name
    b) email address to send mail
    and it sends ANY FILE (.xls,.pdf .xyz..)
    Instantaneously !
    4. Make two things first :
    1. Include with the name : ZAMI_INCLFOR_MAIL
    2. Report with the name : ZAM_TEMP147 (any name will do)
    3. Activate both and execute (2)
    4. After providing filename, email adress
    5. Code for Include :
    10.08.2005 Amit M - Created
    Include For Mail (First Req F16)
    Modification Log
    Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = reclist
    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
    IF sy-subrc <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    CODE FOR PROGRAM
    5.
    REPORT zam_temp147 .
    INCLUDE zami_inclfor_mail.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    regards,
    amit m.

  • I have files that have been on my computer for over a year and all of a sudden they wont open and an error message comes up saying they were improperly downloaded or came in an email attach which is not the case

    I have files that have been on my computer for over a year and I have used them several times and all of a sudden they wont open.  I received an error message saying they are improperly downloaded or came as an email attachement which is not the case.  Please advise

    They seem to be word files - they will open if I choose "open with" microsoft word, but if I double click they don't open they are appearing as PDF on my screen.  I even opened one and then tried to "save as" making sure I chose .doc and they still appear as PDF
    I just created a new document response.doc in word and when I saved to my desktop it appears as a PDF file and I absolutely did not create a PDF or save as PDF it was a simple word
    doc.
    The message says "Adobe reader could not open response.doc because it is either not a supported file type or because the file has been damaged (for example attached in an email and not properly decoded)
    The reader version is I believe the most current, I always update when prompted.  OS is Windows 8

  • Email attachment name in sender mail adapter to the receiver file adapter

    HI ,
    Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
    Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
    I assume , i need to do following steps :Please confirm.
    1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
    2. select ASMA option in advanced tab in sender mail adapter
    3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
    4. Also select file name option in ASMA in sender mail adapter
    Thanks,
    Vamsi

    Hi Vamsi,
    your scenario is also described here: Re: sender mail adapter - attachment name
    If you use the Module getAttachmentName, which is described here,
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
    your scenario should work as you described it.
    You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
    Fileadapter (http://sap.com/xi/XI/System/File/FileName).
    regards,
    Daniel

  • How do I attach multiple files from the pages app to my email

    I'm trying to attach multiple documents from the "Pages" app to my email.  I'm using an ipad.  It is only letting me attach one at a time and send each document as individual emails.  I would like to be able to send one email with all 4 documents at the same time.  Any suggestions?
    Another thought- When I go to my gmail app to compose an email, I have the following to send:
    to:
    cc:
    subject:
    But there is not a paperclip to click to attach any documents either.  Is this all connected and something in my ipad settings needs to be adjusted?

    You can only attach one file at a time to email in the Pages app
    You cannot attach files in the mail app. If you want to email a file, you do it from within the app where the file is saved such as what you did with Pages.

  • Mac won't open some files MasterPlan.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    I had this problem of not being able to open some files a couple of years ago and eventually was able to fix it but i can't remember how. Any help would be grateful.

    The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
    Please update this thread if your issue is resolved.
    Thanks,
    Shashi

  • I bought an ebook but when I  try to download it I receive a message stating 'Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wa

    Can anyone assist me? I keep receiving this message when I download my ebook ''Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't decoded).'
    Much appreciated

    I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • How to use UTL_SMTP to send email with existing file attachment

    Hello! I am trying to create a pl/sql procedure that lets me send an email and include an existing file to a email address. So far, I found information on how to send a file and create an attachment with information I put in the procedure. This is NOT what I'm trying to do. I'm trying to send an email and include an attachment for a file that already exists. I need the pre-existing file to be sent to the email recipient.
    This is how far I've gotten, but this only allows me to CREATE an attachment with the information I put in it from the procedure. I got it from the following site:
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL
    DECLARE
       v_From       VARCHAR2(80) := '[email protected]';
       v_Recipient  VARCHAR2(80) := '[email protected]';
       v_Subject    VARCHAR2(80) := 'Weekly Invoice Report';
       v_Mail_Host  VARCHAR2(30) := 'mail.mycompany.com';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Data(v_Mail_Conn,
        'Date: '   || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
        'From: '   || v_From || crlf ||
        'Subject: '|| v_Subject || crlf ||
        'To: '     || v_Recipient || crlf ||
        'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
        'Content-Type: multipart/mixed;'|| crlf ||
        ' boundary="-----SECBOUND"'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        'Content-Transfer_Encoding: 7bit'|| crlf ||
        crlf ||
        'This is a test'|| crlf ||     -- Message body
        'of the email attachment'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        ' name="ap_inv_supplier_cc10.txt"'|| crlf ||
        'Content-Transfer_Encoding: 8bit'|| crlf ||
        'Content-Disposition: attachment;'|| crlf ||
        ' filename="ap_inv_supplier_cc10.txt"'|| crlf ||
        crlf ||
        'TXT,file,attachment'|| crlf ||     -- Content of attachment  (THIS IS MY PROBLEM!  I NEED TO BE ABLE TO ATTACH AN EXISTING FILE, NOT CREATE A NEW ONE)
        crlf ||
        '-------SECBOUND--'               -- End MIME mail
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    First, you must create a directory object
    create directory ORALOAD as '/home/ldcgroup/ldccbc/'
    /Study the Prerequisites in the link I posted above, or else you will not be able to read/write files from the above directory object
    "fname" relates to the file name that you read from.
    In the code below, it is also the name of the file that you are attaching.
    Although they can be different!
    l_Output is the contents of the file.
    declare
    vInHandle  utl_file.file_type;
    flen       number;
    bsize      number;
    ex         boolean;
    l_Output   raw(32767);
    fname      varchar2(30) := 'ap_inv_supplier_cc10.txt';
    vSender    varchar2(30) := '[email protected]';
    vRecip     varchar2(30) := '[email protected]';
    vSubj      varchar2(50) := 'Weekly Invoice Report';
    vAttach    varchar2(50) := 'ap_inv_supplier_cc10.txt';
    vMType     varchar2(30) := 'text/plain; charset=us-ascii';
    begin
      utl_file.fgetattr('ORALOAD', fname, ex, flen, bsize);
      vInHandle := utl_file.fopen('ORALOAD', fname, 'R');
      utl_file.get_raw (vInHandle, l_Output);
      utl_file.fclose(vInHandle);
      utl_mail.send_attach_raw(sender       => vSender
                              ,recipients   => vRecip
                              ,subject      => vsubj
                              ,attachment   => l_Output
                              ,att_inline   => false
                              ,att_filename => fname);
    end;
    /

  • How to set up link on icon to forward PDF file as email attachment

    HI,
    I need urgent help.
    I know this used to work but cant find it in Acrobat XI.
    We created a file for a client, on the last page is a twitter, facebook and linkedIn icon which are set as links in Indesign to forward to the matching social network. Works fine when I created PDF with Hyperlinks.
    We also set up an envelope symbol which shall get, now where it is set up as PDF,  a link, so the PDF itself can get forwarded as a email attachment.
    I can not find this function on a MAC nor on PC Acrobat XI.
    Hope you can help, much appreciated!!!!
    THANKS

    Have a look at this thread:
    http://forums.adobe.com/thread/1275490?tstart=0
    where there is a script for submitting the PDF by email.

Maybe you are looking for

  • Can't install a trial version of RoboHelp 11.

    There's always an error at the Initializing stage. It tells me to restart and turn off firewalls, etc., but I can't turn off Windows Defender.

  • Pages Documents Always Open with Microsoft Word???

    I have two word processing applications installed on my computer: Microsoft Word (12.24) Pages (4.04) For whatever reason, documents in .pages always want to open using Microsoft Word. I have tried everything to change this, including Get Info> Open

  • Certificate Chain or Paths

    I want to validate a certificate chain. I decided to use CertPathValidator, the problem is that, I have root or trusted certificates in a collection as follows           Collection CACert = cf.generateCertificates(is); Now the PKIXParameters construc

  • Schedule Ageement Capacity in Heuristic

    I have read in help that I should be able to get the SNP Heuristic to take into account the capacity on a schedule agreement but I canu2019t seem to get it to work.  I can run the heuristic in the background in 9ASNP94 with Location Product SA Capaci

  • Since installing photostream, iphoto crashes upon opening.

    I just installed icloud, with photostream.  Now, every time I try to open iPhoto, it crashes.  If I shut off photostream, iPhoto works fine.  Any suggestions?