Send file as email attachment not working

any help would be greatly appreciated...
When I click "send file as email attachment" it will open outlook with the PDF attached but when I click send on the email,  the email closes like it is sent but never actually gets sent (nothing in sent items and recipient never gets the email)
Adobe Acrobat 11 Pro (Creative Cloud Suite installed)
Outlook 2013

Hi sandyw26405588,
Could you please try sending PDF as email attachment via another email apart from Outlook.
Are you able to send the file successfully?
Also, go under 'Help> Check for Updates' and ensure if you are using the latest version of Acrobat XI i.e. 11.0.10
Have you tried sending any other PDF via Outlook?
Let me know.
Regards,
Anubha

Similar Messages

  • Preview 6.0, no send file as email attachment?

    Does anyone know where they put the send file command?  I need to email pdfs from Preview all the time.
    There used to be a "send file as email attachment" command under the edit menu.  It's gone.  Anyone have any suggestions?

    Handsomfreddy wrote:
    Sorry, I dont understand what you are referring to. Can you calify please "undo the changes."
    Thanks,
    Andy
    Didn't you just post this (below)
    Handsomfreddy wrote:
    Very bizarrely Parallels had changed this Mail Preference to some weird Windows program [Disk Clean up or something equally random] thus preventing me from emailing anything from any program.
    That's the change I am referring to.

  • Send .pdf as email attachment not under tools in 11.0.9

    The option to send .pdf as an email attachment is not under the tools menu as it has been in previous versions. Is this an option that has been removed, or is this an error in the installation?

    This does not solve the issue. I have updated my system to version 11.0.10 and the feature is still missing.

  • OSB - send file in email attachment in SOAP attachment

    Hi!
    I would like to send a file in email in SOAP attachment.
    I thought it would be a simple task, I will create a proxy service, which calls a business service. There is a routing action in proxy service to business service and after the rouiting there is a replace action, I replace the attachments variable with this:
    <con:attachment xmlns:con="http://www.bea.com/wli/sb/context">
    <con:Content-Type>application/pdf</con:Content-Type>
    <con:Content-Transfer-Encoding>base64</con:Content-Transfer-Encoding>
    <con:Content-Disposition>attachment; filename="Simple.pdf"</con:Content-Disposition>
    <con:body>{$attachments/ctx:attachment/ctx:body}</con:body>
    </con:attachment>
    I received the email, but i cannot open the document, because it is corrupted...
    Please, could someone help me?
    I can't find out the solution.
    Thanks!
    Viktor

    Hi Anuj!
    Thanks for your answer again! :)
    I tried the blog and I could send email with attachment. My problem is that I have to put the file content into the webservice body when i call the proxy service as a webservice. But I want to put the file into the SOAP attachment. So this is my scenario:
    1. the service counsumer calls the proxy service webservice and the service consumer (client) put the file into the request SOAP attachment
    2. the proxy service calls the business service
    3. the business service sends the email with an attachment (and the file is into this attachment)
    Could You help me?
    Thanks!

  • PI Sender File Adapter OS Commands not working

    Hi Guys,
    I have very simple scenario. we are using PI 7.1 with EHP1 on HP hardware with JDK 1.5.2*.
    We are processing XML files through Sender File Adapter(NFS) to Idocs. We also need to move some pdf documents to target folders on the same box (basically Sender and Receiver files/foders are mounted to PI OS hence I am using NFS)
    I am trying to put a simple OS command copy and mov command.
    in the Before Message Processing: cp /tmp/*.pdf /tmp/out/
    And in the After Message Processing: mv /tmp/*.pdf /tmp/archive/
    In the Adapter Audit logs says these commands are executed but I don't see any effect and there is no error/Traces available even in the Server logs also.
    I have been using these OS commands since XI 3.0 I never had any issue.
    I have gone through SDN but no luck, Please share your experiences.
    Thanks,
    Laxman
    Edited by: Laxman  Molugu on Feb 3, 2010 11:58 AM
    Edited by: Laxman  Molugu on Feb 3, 2010 11:59 AM

    hi ,
    As i understand your requirement you just want to take the pdf file from one folder of XI server and put it to another..
    for this u do not need a OS command..
    This requirement is simple ..infact u do not need any IR components as well..
    u just have to develop the ID part and wherever it asks for namespace or message interface u can give a dummy one..
    this would jst take the pdf file from one folder and send it to another

  • Sending contacts via email does not work, Vcards are garbled

    When I send a contact via email, it looks like it's going to send a standard vcard, but when it comes through, it's mostly giberish. Am I doing something wrong? Anyone else have this problem?

    I'm wondering if there isn't some corruption with the address book database on the iPhone. I have a feeling that if you removed and resync'd contacts it might fix it. I'll check back in tomorrow morning to see what the results of mailing a newly created contact were. I'm being told it's bedtime.

  • HT204053 I'm trying to send e mails but is not working comeback asking to replace the email address I'm sending int from

    my email ios not working when i try sending a email it comeback and ask to have e mail address change
    my email need to say off line or on line to be able to send e mail

    Hello ivanstudioladesigns,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    iOS: Adding an email account
    http://support.apple.com/kb/ht4810
    Have a nice day,
    Mario

  • Exchange email will not work when offline

    Anyone know when Apple will fix this issue?  Email will not work correctly unless connected to wireless.  This makes it impossible to be productive while flying.  This is exclusive to exchange servers as it woks on POP accounts.  

    I know that.  When I work on my laptop I can file, reply, delete etc. and when I land it updates all the folders and sends and recevies all the mail.  the iPad will not let you file or delete emails unless connected.  This makes flying time completely unproductive.  If I have to have a laptop to do email why have an iPad???

  • CRES html email attachments not working after upgrade to Exchange 2010

    We have just upgraded from Exchange 2003 to Exchange 2010.  No other changes have been made to our network.  No changes were made to user workstations.  Now when users receive emails from Cicso Registered Envelope Service the HTML file attachments seem to be damaged.  It seems as if Exchange 2010 is stripping part of the HTML attachment.  The final error is "Incomplete Payload".  Please let me know if you have any suggestions.

    I'm sorry that you're having problems. Can you answer these questions so that we can better help you?
    What "Adobe update" are you referring to?  Adobe Flash Player? Adobe Reader? Something else?  (Adobe produces countless products/services, so we need to know what got updated on your computer.)
    Are you using the Adobe Send service? Note that you posted your question in a forum that's used for suggesting new features for that service.
    Can you attach other files to emails, but not just PDFs?
    What email program are you using?

  • Share option for email does not work after Yosemite upgrade.

    Hi,
    Does anybody know why the share option, "Share via email" does not work anymore after Yosemite upgrade?  I love this feature.  It's just quick and easy.
    Rod.

    On Yosemite, Pages '09 v4.3 no longer recognizes the Share > Send Via Email categories. You will have to export and manually drag/drop/attach documents to Mail. There is no fix.

  • How to convert sap script to pdf and send it as email attachment

    hi,
    my requirement is to convert a standard sales order form to pdf and send it as email attachment. get me some sample code for the same
    thanks in advance

    Hi
    See this sample code and after that use the fun module to send the mail
    SO_NEW_DOCUMENT_ATT_SEND_API1
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    If you r using this function module check it once....
    call function 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = v_len_in
    TABLES
    otf = i_otf
    lines = i_tline
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    others = 4.
    Fehlerhandling
    if sy-subrc <> 0.
    endif.
    or u can use the standard program RSTXPDFT4 to download the script into PDF format onto a particular location
    follow this link for sample program.
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1121833,00.html
    check...
    How to send smart form via email
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
    Regards
    Anji

  • Email attachments not working after latest upgrade

    After downloading the latest Adobe update I can no longer attach pdf's straight to emails. This occurs in several programs which is frustrating - can anyone help?

    I'm sorry that you're having problems. Can you answer these questions so that we can better help you?
    What "Adobe update" are you referring to?  Adobe Flash Player? Adobe Reader? Something else?  (Adobe produces countless products/services, so we need to know what got updated on your computer.)
    Are you using the Adobe Send service? Note that you posted your question in a forum that's used for suggesting new features for that service.
    Can you attach other files to emails, but not just PDFs?
    What email program are you using?

  • Sending excel as email attachment

    Hi All,
    I am getting truncated with the header only upto 255 char length , and the field contents are ok more than 255 length it s taking.
    I am using it_attach  type standard table of solisti1 with header line.
    the report code is given below
    **& Report  ZPBILL_INT1                                                 **
    REPORT  zpbill_int1 .
    *Declaration of type-pools.
    TYPE-POOLS  slis.
         D A T A                                                         **
    TABLES: zbill_inphdr,
            zbill_inpdtl.
    TYPES: BEGIN OF t_zbill_ipdtl,
            cusnr   TYPE zbill_inpdtl-cusnr,
           svsnr  TYPE   zbill_inpdtl-svsnr,
           revnr  TYPE  zbill_inpdtl-revnr,
           sysnr   TYPE zbill_inpdtl-sysnr,
           sdate  TYPE zbill_inpdtl-sdate,
           filnm  TYPE zbill_inpdtl-filnm,
           zlsch  TYPE   zbill_inpdtl-zlsch,
           clrfe   TYPE zbill_inpdtl-clrfe,
           revds   TYPE  zbill_inpdtl-revds,
           prind  TYPE  zbill_inpdtl-prind,
           svsds  TYPE  zbill_inpdtl-svsds,
           quant  TYPE zbill_inpdtl-quant,
           adate  TYPE  zbill_inpdtl-adate,
           trdat  TYPE  zbill_inpdtl-trdat,
           mdate  TYPE  zbill_inpdtl-mdate,
          trdval  type  zbill_inpdtl-trdval,*
           exrate  TYPE  zbill_inpdtl-exrate,
           birate  TYPE  zbill_inpdtl-birate,
           cusds1  TYPE  zbill_inpdtl-cusds1,
           cusds2  TYPE  zbill_inpdtl-cusds2,
           cusstr  TYPE  zbill_inpdtl-cusstr,
           cuspc   TYPE  zbill_inpdtl-cuspc,
           cuscity  TYPE  zbill_inpdtl-cuscity,
           cusctry   TYPE  zbill_inpdtl-cusctry ,
           rect      TYPE zbill_inpdtl-rect,
            invno  TYPE zbill_inpdtl-invno,
           ldate  TYPE zbill_inpdtl-ldate,
           conty  TYPE zbill_inpdtl-conty,
           edate  TYPE  zbill_inpdtl-edate,
           custa  TYPE  zbill_inpdtl-custa,
           currc  TYPE  zbill_inpdtl-currc,
           warrt  TYPE  zbill_inpdtl-warrt,
           indrp  TYPE   zbill_inpdtl-indrp,
           textc   TYPE  zbill_inpdtl-textc,
          gstr   TYPE   zbill_inpdtl-gstr,
           clrds  TYPE  zbill_inpdtl-clrds,
           commty  TYPE  zbill_inpdtl-commty,
           commyr   TYPE  zbill_inpdtl-commyr,
           commmt  TYPE  zbill_inpdtl-commmt,
           commop   TYPE  zbill_inpdtl-commop,
           eposdoc  TYPE  zbill_inpdtl-eposdoc,
           custp   TYPE  zbill_inpdtl-custp,
    END OF t_zbill_ipdtl.
    DATA: it_zbill  TYPE   STANDARD TABLE OF t_zbill_ipdtl
    INITIAL SIZE 0.
    ALV Data declaration.*
    DATA : v_repid LIKE sy-repid.
    ALV Function Module Variables*
    DATA: gs_layout TYPE slis_layout_alv,
    g_exit_caused_by_caller,
    gs_exit_caused_by_user TYPE slis_exit_by_user.
    DATA: gt_fieldcat TYPE slis_t_fieldcat_alv,
    gs_print TYPE slis_print_alv,
    gt_events TYPE slis_t_event,
    gt_list_top_of_page TYPE slis_t_listheader,
    g_status_set TYPE slis_formname VALUE 'PF_STATUS_SET',
    g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
    g_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
    g_top_of_list TYPE slis_formname VALUE 'TOP_OF_LIST',
    g_end_of_list TYPE slis_formname VALUE 'END_OF_LIST',
    g_variant LIKE disvariant,
    g_save(1) TYPE c,
    g_tabname_header TYPE slis_tabname,
    g_tabname_item TYPE slis_tabname,
    g_exit(1) TYPE c,
    gx_variant LIKE disvariant.
    DATA : gr_layout_bck TYPE slis_layout_alv.
    DATA : wa_zbill  TYPE t_zbill_ipdtl.
    *Email related declarations
    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: it_attach TYPE STANDARD TABLE OF SOMLRECI1 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_attachment LIKE SOMLRECI1 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.
    *DATA IT_HEADER    TYPE STANDARD TABLE OF SOLIX INITIAL SIZE 0 WITH
    *HEADER LINE.
    *data : begin of it_header occurs 0,
           header(1023) type C,*
         end of it_header.*
        S E L E C T I O N S                                              **
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
    SELECT-OPTIONS:   s_cusnr   FOR  zbill_inpdtl-cusnr,
                      s_svsnr   FOR  zbill_inpdtl-svsnr,
                      s_revnr  FOR zbill_inpdtl-revnr,
                      s_sysnr  FOR  zbill_inpdtl-sysnr,
                      s_sdate  FOR  zbill_inpdtl-sdate,
                      s_filnm    FOR  zbill_inpdtl-filnm,
                      s_prind   for  zbill_inpdtl-prind.
    PARAMETERS:  p_test  AS CHECKBOX,
                  p_email  AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b01.
    *PARAMETERS: p_email TYPE somlreci1-receiver
        Initialization                                             **
    INITIALIZATION.
      v_repid = sy-repid.
        start-of-selection                                           **
    START-OF-SELECTION.
      PERFORM data_retrieval.
      IF p_test = '' AND  P_EMAIL = ''.
      MESSAGE S038(ZMBILLING).
      ELSEIF  P_TEST  = 'X'.
    display the data in the form of ALV*
        PERFORM display_data.
    ELSEIF P_EMAIL = 'X'.
    *Populate table with detaisl to be entered into .xls file
        PERFORM build_xls_data_table.
    *Populate message body text
        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
        'Billing Details list'
        'XLS'
        'filename'
        CHANGING gd_error
        gd_reciever.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
        PERFORM initiate_mail_execute_program.
      ENDIF.
    *&      Form  data_retrieval
          text*
    FORM data_retrieval.
      SELECT revnr sysnr sdate filnm cusnr
             svsnr zlsch  clrfe revds  prind svsds
             quant adate trdat  mdate exrate
             birate  cusds1 cusds2 cusstr
             cuspc  cuscity  cusctry rect
             invno ldate conty  edate custa
             currc  warrt  indrp textc
             gstr clrds commty commyr commmt
             commop  eposdoc custp
        INTO  CORRESPONDING FIELDS  OF TABLE it_zbill  FROM zbill_inpdtl
        WHERE   cusnr  IN s_cusnr
         AND     svsnr  IN s_svsnr
         AND     revnr  IN s_revnr
         AND    sysnr  IN s_sysnr
         AND    sdate  IN s_sdate
         AND    filnm  IN s_filnm
         and prind  in s_prind.
    ENDFORM. " DATA_RETRIEVAL
    **&      Form  build_xls_data_table
          text*
    FORM build_xls_data_table.
      DATA: ld_store(50) TYPE c. "Leading zeros
      DATA: wa_zbill-quant(20),
            wa_zbill-custa(20),
            wa_zbill-gstr(20).
            wa_zbill-mxamt(20).*
    *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 'Customer code' 'Service Number' 'Revenue Type' 'Source
    System Code' 'Date Source' 'File Name' 'Payment Code' 'Single Char Flag'
    'Revenue Description' 'Processing Indicator' 'Service Description'
    'Order Quantity' 'Date of Adustment' 'Trade Date' 'Mos Date'
    'ExchangeRate' 'Billing Rate' 'Customer Name1' 'Customer name2'
      'Customer adress' 'Customer postalcode' 'Customer city'
      'Customer country' 'Billing amt without GST' 'GST Payable'
      'Receipt number' 'Invoice Number' 'Listing Period'
      'Contract  Type' 'Entry date' 'Custody Code' 'Currency Code'
      'Name of Warrant' 'Rights issue' 'No Of copies'
      'GST Rate' 'Clearing Fee' 'Commodity type'
      'Commodity year' 'Commodity month' 'Commodity Option Tpye'
      'Quantity Transacted' 'Amendment Quantity' 'EPOS DOC type'
      'Customer Type'
    INTO IT_ATTACH SEPARATED BY con_tab.
      CONCATENATE con_cret IT_ATTACH INTO IT_ATTACH.
    *CONCATENATE con_cret it_attach INTO it_attach.
    APPEND it_attach.
      LOOP AT  it_zbill INTO wa_zbill.
        CONCATENATE      wa_zbill-cusnr  wa_zbill-svsnr  wa_zbill-revnr
        wa_zbill-sysnr   wa_zbill-sdate  wa_zbill-filnm  wa_zbill-zlsch
        wa_zbill-clrfe   wa_zbill-revds   wa_zbill-prind   wa_zbill-svsds
        wa_zbill-quant   wa_zbill-adate   wa_zbill-trdat   wa_zbill-mdate
        wa_zbill-exrate  wa_zbill-birate   wa_zbill-cusds1  wa_zbill-cusds2
      wa_zbill-cusstr   wa_zbill-cuspc   wa_zbill-cuscity   wa_zbill-cusctry
        wa_zbill-rect    wa_zbill-invno   wa_zbill-ldate  wa_zbill-conty
        wa_zbill-edate   wa_zbill-custa   wa_zbill-currc   wa_zbill-warrt
        wa_zbill-indrp   wa_zbill-textc   wa_zbill-gstr   wa_zbill-clrds
        wa_zbill-commty  wa_zbill-commyr  wa_zbill-commmt   wa_zbill-commop
        wa_zbill-eposdoc  wa_zbill-custp
         INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach INTO it_attach.
      it_header = it_attach  .*
    *append it_header.
        APPEND it_attach.
      ENDLOOP.
      ENDFORM. " BUILD_XLS_DATA_TABLE
    ***& Form SEND_FILE_AS_EMAIL_ATTACHMENT
    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.
    *ld_sender_address = SY-UNAME.
    ld_sender_address_type = 'SMTP'.*
    *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-OBJ_NAME  = ld_attfilename.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment = it_attach.
      t_attachment[] = it_attach[] .
    t_attachment = it_header.*
    t_attachment[] = it_header[] .*
    *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.                    "build_xls_data_table
    regards
    subba

    Hi ,
    i'm saying check the field doc_size, umcomment it .change 255--->1025 .
    w_doc_data-doc_size =
    **( w_cnt - 1 ) * 255 + STRLEN( it_attach ).**
    **t_packing_list-doc_size = t_packing_list-body_num * 255.**
    for more details , check the documentation.
    regards
    Prabhu

  • I can open pdf files in emails, but not on websites. I have the new Reader.

    I can open pdf files in emails, but not on websites, as I was able to a couple of weeks ago. On websites I get the message, "Adobe Acrobat has crashed". I downloaded the new Adobe Reader and that didn't help. I don't have Adobe Acrobat, on Adobe Reader.

    Windows 7, Google Chrome and the most recent Adobe Reader (just downloaded the same day). The problem is with Google Chrome, as Fire Fox works fine. I tried enabling and disabling what would read pdf files in Chrome plugins and found that the only thing that worked was to disable adobe reader and enable chrome reader, which is the opposite of what was reccomended in answer to other adobe forum questions that were similar to mine.

  • Send files thru email

    hey all
    is it possible to send files thru email using a java program??? i tried using Runtime..... and executing outlook...but i could not figure out how to give filename and reciever's name at the command prompt...can anybody help me in this???
    thanx in advance
    bharthi

    This is a good tutorial for javamail:
    http://developer.java.sun.com/developer/onlineTraining/JavaMail/
    The part about sending attachments is:
    http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#SendingAttachments

Maybe you are looking for

  • Mini DVI to Hdmi Adaptor display problem

    Hi I just got a new miniDvi to Hdmi adaptor and an HDMI cord so i can dual monitor for video production and what not. Problem is when i hook it up to BOTH my 720p HDTVs the mac screen goes blue for a few seconds as if its going to connect to the disp

  • Export Issues

    On 2 of the computers I have, I'm having an issue with export information using the clipboard option. When I select the clipboard option it will paste java.io.BufferedOutputStream@16509fe instead of the actual values from the dataset. Any ideas as to

  • Problem with pivot tables connected to SSAS 2008 R2 in Excel 2010: "Excel found unreadable content in ' file_name '..."

    Hi, I have such problem when I open in Excel 2010 14.0.7128.5000 (32 bit) a xlsx-file containing pivot tables and slicers connected to SSAS 2008 R2 cube: - Excel found unreadable content in '...'. Do you want to recover the contents of this workbook?

  • Query on a table with indexed date field

    I have a table with a date column which is indexed. If I run a query like "select column1 where date_field='20-JAN-04' for example it is fast and uses index. If I run select column1 where date < '20-JAN-04' it is slow and doesnt use the index. I logg

  • Still photo from an iMovie

    How do I retrieve a picture from an iMovie? The only photo left is in an iMovie I made. How can I get it back to a still? Thanks, Mike