Send PDF as E-Mail attachment w. Outlook

When I select attach to E-Mail from the file menu I expected Adobe Acrobat Pro to open a new e-mail (I'm using Outlook here) but it doesn't. How do I explain to Acrobat that I want to use Outlook to send E-Mails?

You need to set Outlook as your default email program.

Similar Messages

  • Can't send PDF as a mail attachment from iPad to a Lotus Notes account

    Hello, I have some problems sending PDF documents as email attachments from my iPad. Using the adobe reader app for iOS, I create an email with the file attached. Sending this to e.g. a hotmail account works fine. However, if I send it to any address at my company, where Lotus Notes is the standard, the attachment seems to be converted into a text file. Is this a known issue with the reader for iPad, or should I rather be looking to IT support at my company for help?

    Download QuickOffice, which Google is now making available for free:
    https://itunes.apple.com/us/artist/quickoffice-inc./id294258240?mt=8
    You can open the XLS attachment in that app, then transfer the document to your Mac via the USB cable. You can then print from the Mac.
    Printing from your iPad doesn't work via Bluetooth either, by the way.
    Regards.

  • Sending pdfs from Mac Mail to Outlook

    I have users that are sending pdfs from mac mail to outlook and the attachements are not going through.  All you see is the paperclip and nothing else.  This has just started happening.  I am telling the users to send emails as plain text with windows friendly attachement as well as to put the attachment in the email.  Anyone have any idea how to fix this.  There are some unhappy users.
    Thank you for the help
    Jeff

    Outlook for Mac has no option to import from Apple's Mail application. The best suggestion I can offer is that you use an IMAP account to transfer your messages.
    Get a free Gmail IMAP account from Google and connect to the account in Mail. Drag your messages into the account to copy them to the server.
    Connect to the same account in Outlook and copy your messages from the server to folders under On My Computer.
    Another option is to get a third party tool that are available online.
    One tool that I am familiar with is Apple Mail Export
    Or you can find more on
    google or
    yahoo for more results
    Hope this helps!

  • 'send to' widget? I need to send pdf without downloading and attaching to an email (one click send function)

    Is there a 'send to' widget I can attach to a pdf document or form to send pdf without downloading and attaching to an email (one click send function)

    From this conversation's thread it appears that Acrobat is not the application / service at issue.
    As this user forum has as its focus "Acrobat" it seems that the OP is in the wrong place.
    Acrobat's one click send feature provides the user a "draft" email. The user still has to process ("click") through steps with the email client/service to actually get the email out and on its way.
    I'm sure that "one click" does everything is available somewhere. Considering all it'd have to do and do right it'd be rather expensive.
    Be well...

  • Is it possible to generate a PDF and send it as a mail attachment ?

    Hello All,
      While there are many contributions and suggestions on how to send a pdf form via email, I will like to find out if its possible to send a pdf as part of an email attachment WITHOUT even viewing it first ? Below is a brief descrption of what I'll like to do :
    1) A user logs into his inbox and checks if there are any requests for his approval. In the event that he finds one, he may either select the row item in the table to display the requests details prior to approving or clicks on approve immediately.
    2) This approval action should send an email to an appointed external supplier with the request details as a pdf attachment.
    All this should be done without the need to generate a interactive form. Is this possible ?
      Thank you very much.
    from
    Kwok Wei

    Hi Hubert,
    I am tryign the same logic as ur to send PDF as an attachement but while opening its giving me file cannot be opened.
    My code goes like this
    CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          E_RESULT       = RESULT
        EXCEPTIONS
          USAGE_ERROR    = 1
          SYSTEM_ERROR   = 2
          INTERNAL_ERROR = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = FORM_OUT-PDF "PDF file from function module
    TABLES
    binary_tab = lv_output.
    DATA:  GD_DOC_DATA      TYPE SODOCCHGI1,
             lt_mailpack  TYPE  STANDARD TABLE OF SOPCKLSTI1 ,
             la_mailpack type                     SOPCKLSTI1 .
    data:lf_lines type i.
    describe table lv_output lines lf_lines.
    clear la_mailpack.
    la_mailpack-transf_bin = 'X'.
    la_mailpack-head_start = 1.
    la_mailpack-head_num = 1.
    la_mailpack-body_start = 1.
    la_mailpack-doc_type = 'PDF'.
    la_mailpack-body_num = lf_lines.
    la_mailpack-doc_size = lf_lines * 255.
    la_mailpack-obj_descr = 'object'.
    la_mailpack-obj_name = 'MAIL'.
    append la_mailpack to lt_mailpack.
    data: IT_RECEIVERS type STANDARD TABLE OF SOMLRECI1 WITH HEADER LINE.
    *DATA:  GD_DOC_DATA      TYPE SODOCCHGI1.
    BREAK FTABAP.
       GD_DOC_DATA-OBJ_DESCR = 'PDF'.
        IT_RECEIVERS-RECEIVER = 'email address'.
        IT_RECEIVERS-REC_TYPE = 'U'.
        APPEND IT_RECEIVERS.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = GD_DOC_DATA
       * PUT_IN_OUTBOX = ' '
        COMMIT_WORK = 'X'
       * IMPORTING
       * SENT_TO_ALL =
       * NEW_OBJECT_ID =
    TABLES
    PACKING_LIST = lt_mailpack
    *OBJECT_HEADER = lt_mailhead
       * CONTENTS_BIN =
    *CONTENTS_TXT = lt_mailtxt
    CONTENTS_HEX = lv_output
       * OBJECT_PARA =
       * OBJECT_PARB =
    RECEIVERS = IT_RECEIVERS.
    Kindly please help me in solving this issue.

  • Sending smartform output as mail attachment (PDF)

    Hi,
    I am trying to send a smartform output in PDF format as a mail attachment. This has to be fired in the save of a Invoice.. configured by the output type.
    Here is the code which i have .. and it does not work.
    DATA: ls_bil_invoice TYPE lbbil_invoice.
    tables: nast.
    DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    i_tline TYPE TABLE OF tline WITH HEADER LINE,
    i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
    i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
    wa_objhead TYPE soli_tab,
    w_ctrlop TYPE ssfctrlop,
    w_compop TYPE ssfcompop,
    w_return TYPE ssfcrescl,
    wa_doc_chng typE sodocchgi1,
    w_data TYPE sodocchgi1,
    wa_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
    v_form_name TYPE rs38l_fnam,
    v_len_in LIKE sood-objlen,
    v_len_out LIKE sood-objlen,
    v_len_outn TYPE i,
    v_lines_txt TYPE i,
    v_lines_bin TYPE i.
    call function 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = 'ZSDDLB_BIL_INVOICE'
      IMPORTING
        fm_name            = v_form_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        others             = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
      EXPORTING
        control_parameters = w_ctrlop
        output_options     = w_compop
        user_settings      = 'X'
        is_bil_invoice     = ls_bil_invoice
        is_nast            = nast
        is_repeat          = 'X'
      IMPORTING
        job_output_info    = w_return
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        OTHERS             = 5.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    i_otf[] = w_return-otfdata[].
    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.
    if sy-subrc EQ 0.
    endif.
    Convert PDF from 132 to 255.
    loop at i_tline.
      translate i_tline using '~'.
      concatenate wa_buffer i_tline into wa_buffer.
    endloop.
    translate wa_buffer using '~'.
    do.
      i_record = wa_buffer.
      append i_record.
      shift wa_buffer left by 255 places.
      if wa_buffer is initial.
        exit.
      endif.
    enddo.
    refresh:
    i_reclist,
    i_objtxt,
    i_objbin,
    i_objpack.
    clear wa_objhead.
    Object with PDF.
    i_objbin[] = i_record[].
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    Object with main text of the mail.
    i_objtxt = 'Find attached the output of the smart form.'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    Document information.
    wa_doc_chng-obj_name = 'Smartform'.
    wa_doc_chng-expiry_dat = sy-datum + 10.
    wa_doc_chng-obj_descr = 'Smart form output'.
    wa_doc_chng-sensitivty = 'F'. "Functional object
    wa_doc_chng-doc_size = v_lines_txt * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
    CLEAR i_objpack-transf_bin.
    Start line of object header in transport packet Smart Forms
    i_objpack-head_start = 1.
    Number of lines of an object header in object packet
    i_objpack-head_num = 0.
    Start line of object contents in an object packet
    i_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
    i_objpack-body_num = v_lines_txt.
    Code for document class
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    Packing as PDF.
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'Smartform'.
    CONCATENATE 'Smartform_output' '.pdf'
    INTO i_objpack-obj_descr.
    i_objpack-doc_size = v_lines_bin * 255.
    APPEND i_objpack.
    Document information.
    CLEAR i_reclist.
    e-mail receivers.
    i_reclist-receiver = '[email protected]'.
    i_reclist-express = 'X'.
    i_reclist-rec_type = 'U'. "Internet address
    APPEND i_reclist.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = wa_doc_chng
        put_in_outbox              = 'X'
      TABLES
        packing_list               = i_objpack
        object_header              = wa_objhead
        CONTENTS_BIN               = i_objbin
        contents_txt               = i_objtxt
        receivers                  = i_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 EQ 0.
    ENDIF.

    Hi Aviroop,
      Compare your part of code with the below given code.
    *& Report  YSSN_SIMPLE_SMARTFORM                                       *
    report  zhr_bhaskar_pdf_to_email                   message-id zmsg.
    parameters: p_vbeln type vbak-vbeln default '35'.
    data: it_items type table of vbap,
          v_fm_name type  rs38l_fnam,
          v_tot_lines type i,
          v_sy_tabix           type i,
          output_data        type ssfcrescl. " To hold Output information
    constants:
      c_sep                type c value '-',  " Value -
      c_x                  type c value 'X',  " Value X
      c_space              type c value ' '.  " Space
    *****MAIL START
    include .
    data: g_mail_rec_obj type swotobjid,
          g_mail_sen_obj type swotobjid,
          g_mail_app_obj type swotobjid,
          g_cont_par type  ssfctrlop,
          folder type swc_object,
      begin of sofmfol_key,
          foldertype like sofm-foltp,
          folderyear like sofm-folyr,
          foldernumber like sofm-folno,
          type like sofm-doctp,
          year like sofm-docyr,
          number like sofm-docno,
          forwarder like soub-usrnam,
      end of sofmfol_key,
          bor_key like swotobjid-objkey,
         g_mail TYPE  ppfdmailad VALUE '[email protected]',
          g_mail type  so_name value '[email protected]',
        g_mail TYPE  ppfdmailad VALUE '[email protected]' ,
        g_mail TYPE  ppfdmailad VALUE '[email protected]' ,
          g_rectype type  so_escape value 'U'. " 'B'.
    data: job_output_info type ssfcrescl,
          hotfdata like itcoo  occurs 1 with header line,
          htline like tline    occurs 1 with header line,
          x_objcont like soli  occurs 1 with header line,
          ld_packing_list like soxpl occurs 1 with header line,
          x_object_hd_change like sood1 occurs 1 with header line,
          x_objhead like soli           occurs 1 with header line,
          x_receivers like soos1 occurs 1 with header line,
          format_pdf(10) value 'PDF',
          doc_size(12) type c,
          hltlines type i,
          htabix like sy-tabix,
          fle1(2) type p,
          fle2(2) type p,
          off1 type p,
          hfeld(500) type c.
    tables: soud.
    *****MAIL END
    select *
    into table it_items
    from vbap
    where vbeln = p_vbeln.
    if  it_items[] is initial.
       exit.
    endif.
    perform call_smartform.
    *&      Form  call_smartform
          text
    -->  p1        text
    <--  p2        text
    form call_smartform .
    *DATA: lx_control_parameters TYPE SSFCTRLOP,
         lx_OUTPUT_OPTIONS type SSFCOMPOP.
         lx_OUTPUT_OPTIONS-TDIMMED = ' '.
         lx_OUTPUT_OPTIONS-TDfinal = 'X'.
         lx_OUTPUT_OPTIONS-TDDELETE = 'X'.
         lx_CONTROL_PARAMETERS-NO_CLOSE = 'X'.
         lx_CONTROL_PARAMETERS-NO_OPEN = ' '.
      data: x_ssfcompop type ssfcompop,
            x_ssfctrlop like ssfctrlop,
            x_ssfcrescl type ssfcrescl.
    **MAIL
      g_cont_par-langu = sy-langu.
      g_cont_par-no_dialog = 'X'.
      g_cont_par-getotf = 'X'.
      g_cont_par-device = 'MAIL'.
    Get BOR-Objects for Recipient, Sender und Applikation
      perform mail_recipient_object changing g_mail_rec_obj.
      perform mail_sender_object changing g_mail_sen_obj.
      perform mail_appl_object changing g_mail_app_obj.
    **MAIL
    *--Internal table is having more than 1 record
      if v_tot_lines  gt 1.
        if  v_sy_tabix = 1.
    *--For first record of table
          x_ssfctrlop-no_open  = c_space.
          x_ssfctrlop-no_close = c_x.
        elseif v_sy_tabix = v_tot_lines.
    *--For last record of table
          x_ssfctrlop-no_open  = c_x.
          x_ssfctrlop-no_close = c_space.
        else.
          x_ssfctrlop-no_open  = c_x.
          x_ssfctrlop-no_close = c_x.
        endif.
      endif.
    IF r_previ = c_x.
        x_ssfctrlop-preview  =  c_x.
        x_ssfctrlop-getotf   =  c_x.
    ENDIF.
    call function 'SSF_FUNCTION_MODULE_NAME'
       exporting
         formname                 = 'YSSN_SMARTFORM'
       VARIANT                  = ' '
       DIRECT_CALL              = ' '
      importing
        fm_name                  = v_fm_name
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
    if sy-subrc <> 0.
       message i000 with 'Smart form module name failure'.
       exit.
    endif.
    CALL FUNCTION '/1BCDWB/SF00000199'
    call function v_fm_name
       exporting
       ARCHIVE_INDEX              =
       ARCHIVE_INDEX_TAB          =
       ARCHIVE_PARAMETERS         =
       control_parameters         = g_cont_par
       mail_appl_obj              = g_mail_app_obj
       mail_recipient             = g_mail_rec_obj
       mail_sender                 = g_mail_sen_obj
      OUTPUT_OPTIONS             = lx_OUTPUT_OPTIONS
       USER_SETTINGS              = 'X'
         t_vbap                     = it_items
    IMPORTING
       DOCUMENT_OUTPUT_INFO       =
        job_output_info            = job_output_info
       JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
      perform send_pdf_mail.
    endform.                    " call_smartform
    *&      Form  send_pdf_mail
          text
    -->  p1        text
    <--  p2        text
    form send_pdf_mail .
      data ld_binfile type xstring.
              pdf_table type  rcl_bag_tline,
      data: ld_originator like soos1-recextnam.
    convert form
      loop at job_output_info-otfdata into hotfdata.
        append hotfdata.
      endloop.
      call function 'CONVERT_OTF'
           exporting
                format                = format_pdf
                max_linewidth         = 132
           importing
                bin_filesize          = doc_size
                bin_file              = ld_binfile
           tables
                otf                   = output_data-otfdata
                lines                 = htline
           exceptions
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                others                = 4.
    *-Itab 134 Zeichen nach 255 Zeichen überführen
      describe table htline    lines  hltlines.
      describe field htline    length fle1 in character mode.
      describe field x_objcont length fle2 in character mode.
      loop at htline.
        htabix = sy-tabix.
        move htline to hfeld+off1.
        if htabix = hltlines.
          fle1 = strlen( htline ).
        endif.
        off1 = off1 + fle1.
        if off1 ge fle2.
          clear x_objcont.
          x_objcont = hfeld(fle2).
          append x_objcont.
          shift hfeld by fle2 places.
          off1 = off1 - fle2.
        endif.
        if htabix = hltlines.
          if off1 gt 0.
            clear x_objcont.
            x_objcont = hfeld(off1).
            append x_objcont.
          endif.
        endif.
      endloop.
      x_object_hd_change-objnam    = 'EMAIL'.
      x_object_hd_change-objdes    = 'Smart Form'.
      x_object_hd_change-objla     = sy-langu.
      x_object_hd_change-objsns    = 'O'.
      x_object_hd_change-objlen    = doc_size.
      x_object_hd_change-file_ext  = 'TXT'.
      ld_packing_list-transf_bin = 'X'.
      ld_packing_list-head_start = 1.
      ld_packing_list-head_num = 0.
      ld_packing_list-body_start = 1.
      describe table x_objcont lines    ld_packing_list-body_num.
      ld_packing_list-objtp = 'EXT'.
      ld_packing_list-objdes    = 'Smart Form'.
      ld_packing_list-objla     = sy-langu.
      ld_packing_list-objlen    = doc_size.
      ld_packing_list-file_ext  = 'PDF'.
      append ld_packing_list.
      x_receivers-recextnam    = g_mail.
      x_receivers-recesc       = 'E'.
      x_receivers-sndart       = 'INT'.
      append x_receivers.
      ld_originator = '[email protected]'.
    ld_originator = FSABE-USRNAM.
      call function 'SO_OBJECT_SEND'
           exporting
                object_hd_change           = x_object_hd_change
                object_type                = 'RAW'
                originator_type            = 'B'  "Einfügen
                originator                 =   ld_originator  "Einfügen
           tables
               objcont                    = ld_text
                receivers                  = x_receivers
                packing_list               = ld_packing_list
                att_cont                   = x_objcont
                att_head                   = x_objhead
           exceptions
                active_user_not_exist      = 1
                communication_failure      = 2
                component_not_available    = 3
                folder_not_exist           = 4
                folder_no_authorization    = 5
                forwarder_not_exist        = 6
                note_not_exist             = 7
                object_not_exist           = 8
                object_not_sent            = 9
                object_no_authorization    = 10
                object_type_not_exist      = 11
                operation_no_authorization = 12
                owner_not_exist            = 13
                parameter_error            = 14
                substitute_not_active      = 15
                substitute_not_defined     = 16
                system_failure             = 17
                too_much_receivers         = 18
                user_not_exist             = 19
                x_error                    = 20
                others                     = 21.
    endform.                    " send_pdf_mail
    *& Form mail_sender_object
    text
    <--P_G_MAIL_SEN_OBJ text
    form mail_sender_object changing p_mail_sen_obj.
      call function 'CREATE_SENDER_OBJECT_PPF'
           exporting
                ip_sender      = sy-uname
           importing
                ep_sender_id   = p_mail_sen_obj
           exceptions
                invalid_sender = 1
                others         = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform. " mail_sender_object
    *& Form mail_appl_object
    text
    <--P_G_MAIL_APP_OBJ text
    form mail_appl_object changing p_mail_app_obj.
    SELECT * FROM soud WHERE sapnam LIKE sy-uname AND deleted = ' '.
    ENDSELECT.
    IF sy-subrc NE 0.
        call function 'SO_USER_AUTOMATIC_INSERT'
             exporting
                  sapname        = sy-uname
             exceptions
                  no_insert      = 1
                  sap_name_exist = 2
                  x_error        = 3
                  others         = 4.
        if sy-subrc ne 0.
          clear soud.
        else.
          select * from soud where sapnam like sy-uname and deleted = ' '.
          endselect.
        endif.
    ENDIF.
      clear sofmfol_key.
      sofmfol_key-type = 'FOL'.
      sofmfol_key-year = soud-inbyr.
      sofmfol_key-number = soud-inbno.
      bor_key = sofmfol_key.
      if not bor_key is initial.
        swc_create_object folder 'SOFMFOL' bor_key.
        if sy-subrc = 0.
          swc_object_to_persistent folder p_mail_app_obj.
          if sy-subrc ne 0.
            clear p_mail_app_obj.
          endif.
        endif.
      else.
        clear p_mail_app_obj.
      endif.
    endform. " mail_appl_object
    *& Form mail_recipient_object
    text
    <--P_G_MAIL_REC_OBJ text
    form mail_recipient_object changing p_mail_rec_obj.
      call function 'CREATE_RECIPIENT_OBJ_PPF'
      exporting
    IP_COUNTRY =
    IP_FAXNO =
       ip_mailaddr = g_mail
       ip_type_id = g_rectype         " 'U'
      importing
        ep_recipient_id = p_mail_rec_obj
    EP_ADDRESS =
    ET_RECIPIENT =
      exceptions
        invalid_recipient = 1
         others = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform. " mail_recipient_object
    I hope this code should definitely work and helps you a lot.
    Do reward me if it helps you.
    Cheers,
    Sampath

  • How to send PDF file as an attachment in email?

    Hi Folks,
    I have successfully configured SMTP and by now I can successfully send normal text messages along with .TXT files. However, when I am trying to send an email along with .pdf file as an attachment, I am getting the mail in my inbox, but I cannot open the .pdf file! I am getting the following Acrobat error:
    Acrobat could not open 'abc.pdf' because it is either not a supported file type or because the file has been corrupted
    Can any help me in solving this problem?
    Thanks in advance
    Regards,
    Faisal

    Hi Vajha,
    Thanks alot for your kind reply. I also express my apologies for responding to your reply lately.
    I beleive all the links you have sent me are talking about ABAP coding. what I am interested in is,
    is there any configuration that I am missing in SCOT (Basis side)?
    Since I am not an ABAPER, so I carry out these activities.
    Can anyone please answer the following queries of mine:
    1. Can't we send any PDF attachment in a mail from R/3?
    2. Do we have to do it through coding only?
    3. In scot we have option "All formats except fllw". But it does not work for me. Any inputs?
    Thanks in advance.
    Regards,
    Faisal

  • Error in opening pdf file from mail attachment sent thru MII

    Hi,
    I am using MII 12.1.4 build(36).
    I have created a pdf file from BLS using PDF actions block and saving the file in web location as mentioned below:
    WEB://<ProjectFolder>/<subfolder>/Report.pdf
    I'm using the same file as attachment in my m a i l action block with attachment content type "application/pdf" and AttachmentContent "ImageSaver.EncodedImage" or "PDFDoc.Output".
    When i check the mail,i can see the attachment with some size of 8kb,but when I open the file i will get below error:
    "Adobe Reader could not open Report.pdf because it is either not supported file type or because the file has been damaged(for example,it was sent as an m a i l attachment and wasn't correctly decoded)"
    If I try to open the same file by exporting fit to my desktop,it opened properly.
    Anything I'm missing here?
    Thanks in Advane,
    Suresh

    Hi,
    According to below mentioned thread,this problem is fixed in 12.1.5 and above.
    Re: Attachment Content When sending PDF attachment in Send Mail Step
    Then I deployed the new patch ie SP07.
    Here there is one problem,ie in Menu page I can see the 12.1.7(Build40),when I open the workbech,it shows the previous patch 12.1.4(Build 36).Why is it so?
    All of my transactions running fine except the one which I have mentioned in my previous post.
    When I run the transaction mentioned in my previous post,it threw an excption for PDF Table Action block and the error mentioned below:
    [ERROR] Error found trying to execute action 'PDF_Table_0' Exception: [null]
    [ERROR] [PDF_Table_0] Action: Runtime threw an exception. Exception: [java.lang.StackOverflowError]
    When I can check the m a i l, I'm able to open the attached PDF file without error but without data.Is it because of the above mentioned error?
    Plz help me.
    -Suresh

  • Send PDF file as an attachement en an email (only 1 st page send?)

    Hi all !
    I have a requirement to send a spool job as an .PDF attachement via email for my client.
    I was using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert a spool into a PDF file
    Then Convert PDF from 132 to 255 characters.
    Then I use the following code from the forum to send the attachment to email
    Document information.
              W_DOC_CHNG-OBJ_NAME = 'ATTACHMENT'.
              W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
              CONCATENATE TEXT-T07 PN-PABRP PN-PABRJ INTO W_DOC_CHNG-OBJ_DESCR separated by space.
              W_DOC_CHNG-SENSITIVTY = 'F'. "Functional object
             W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
              W_DOC_CHNG-DOC_SIZE = V_LINES_BIN * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
             CLEAR I_OBJPACK-TRANSF_BIN.
              I_OBJPACK-TRANSF_BIN = ''.
    Start line of object header in transport packet
              I_OBJPACK-HEAD_START = 1.
    Number of lines of an object header in object packet
              I_OBJPACK-HEAD_NUM = 0.
    Start line of object contents in an object packet
              I_OBJPACK-BODY_START = 1.
    Number of lines of the object contents in an object packet
              I_OBJPACK-BODY_NUM = V_LINES_TXT.
    Code for document class
              I_OBJPACK-DOC_TYPE = 'RAW'.
              I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
              APPEND I_OBJPACK.
    Packing as PDF.
              I_OBJPACK-TRANSF_BIN = 'X'.
              I_OBJPACK-HEAD_START = 1.
              I_OBJPACK-HEAD_NUM = 1.
              I_OBJPACK-BODY_START = 1.
              I_OBJPACK-BODY_NUM = V_LINES_BIN.
              I_OBJPACK-DOC_TYPE = 'PDF'.
              I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
              CONCATENATE 'Remuneration_Statements_' PN-PABRP '_' PN-PABRJ  '.pdf'
              INTO I_OBJPACK-OBJ_DESCR.
              I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
              APPEND I_OBJPACK.
              clear I_OBJPACK.
    Document information.
              CLEAR I_RECLIST.
    e-mail receivers.
              read table it_pernr into wa_pernr
                  with key pernr = pernr-pernr binary search.
              if sy-subrc eq 0.
                I_RECLIST-RECEIVER = wa_pernr-usrid.
              endif.
              I_RECLIST-COM_TYPE = 'INT'.                   "Internet Email
    *I_RECLIST-notif_del  = 'X'.
    *I_RECLIST-notif_ndel = 'X'.
              I_RECLIST-EXPRESS = 'X'.
              I_RECLIST-REC_TYPE = 'U'. "Internet address
              APPEND I_RECLIST.
              CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
                  DOCUMENT_DATA                    = W_DOC_CHNG
              PUT_IN_OUTBOX                    = ' '
                  COMMIT_WORK                      = 'X'
            IMPORTING
              SENT_TO_ALL                      =
              NEW_OBJECT_ID                    =
              TABLES
                 PACKING_LIST                     = I_OBJPACK
       OBJECT_HEADER                    = W_OBJHEAD
           CONTENTS_BIN                     = I_OBJBIN
           CONTENTS_TXT                     = I_OBJTXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
            RECEIVERS                        = I_RECLIST
    The email did succesfully send to the receipents but only the first page of the PDF attachement file was sent not the 2nd page.
    Can any body help ?
    Thanks a lot

    Hi all !
    I have a requirement to send a spool job as an .PDF attachement via email for my client.
    I was using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert a spool into a PDF file
    Then Convert PDF from 132 to 255 characters.
    Then I use the following code from the forum to send the attachment to email
    Document information.
              W_DOC_CHNG-OBJ_NAME = 'ATTACHMENT'.
              W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
              CONCATENATE TEXT-T07 PN-PABRP PN-PABRJ INTO W_DOC_CHNG-OBJ_DESCR separated by space.
              W_DOC_CHNG-SENSITIVTY = 'F'. "Functional object
             W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
              W_DOC_CHNG-DOC_SIZE = V_LINES_BIN * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
             CLEAR I_OBJPACK-TRANSF_BIN.
              I_OBJPACK-TRANSF_BIN = ''.
    Start line of object header in transport packet
              I_OBJPACK-HEAD_START = 1.
    Number of lines of an object header in object packet
              I_OBJPACK-HEAD_NUM = 0.
    Start line of object contents in an object packet
              I_OBJPACK-BODY_START = 1.
    Number of lines of the object contents in an object packet
              I_OBJPACK-BODY_NUM = V_LINES_TXT.
    Code for document class
              I_OBJPACK-DOC_TYPE = 'RAW'.
              I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
              APPEND I_OBJPACK.
    Packing as PDF.
              I_OBJPACK-TRANSF_BIN = 'X'.
              I_OBJPACK-HEAD_START = 1.
              I_OBJPACK-HEAD_NUM = 1.
              I_OBJPACK-BODY_START = 1.
              I_OBJPACK-BODY_NUM = V_LINES_BIN.
              I_OBJPACK-DOC_TYPE = 'PDF'.
              I_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
              CONCATENATE 'Remuneration_Statements_' PN-PABRP '_' PN-PABRJ  '.pdf'
              INTO I_OBJPACK-OBJ_DESCR.
              I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
              APPEND I_OBJPACK.
              clear I_OBJPACK.
    Document information.
              CLEAR I_RECLIST.
    e-mail receivers.
              read table it_pernr into wa_pernr
                  with key pernr = pernr-pernr binary search.
              if sy-subrc eq 0.
                I_RECLIST-RECEIVER = wa_pernr-usrid.
              endif.
              I_RECLIST-COM_TYPE = 'INT'.                   "Internet Email
    *I_RECLIST-notif_del  = 'X'.
    *I_RECLIST-notif_ndel = 'X'.
              I_RECLIST-EXPRESS = 'X'.
              I_RECLIST-REC_TYPE = 'U'. "Internet address
              APPEND I_RECLIST.
              CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
                  DOCUMENT_DATA                    = W_DOC_CHNG
              PUT_IN_OUTBOX                    = ' '
                  COMMIT_WORK                      = 'X'
            IMPORTING
              SENT_TO_ALL                      =
              NEW_OBJECT_ID                    =
              TABLES
                 PACKING_LIST                     = I_OBJPACK
       OBJECT_HEADER                    = W_OBJHEAD
           CONTENTS_BIN                     = I_OBJBIN
           CONTENTS_TXT                     = I_OBJTXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
            RECEIVERS                        = I_RECLIST
    The email did succesfully send to the receipents but only the first page of the PDF attachement file was sent not the 2nd page.
    Can any body help ?
    Thanks a lot

  • Sending XI-Content as Mail Attachement with specific Filename

    Hi,
    I want to send the Message-Content as a mail attachment with a specific Filename (e.g. 2005-08-31.csv). The content is a CSV File, not a XML
    In the scenario an IDOC is sent to the XI mapped in a CSV-File (via Java-Mapping) and should be send as a Mail Attachment.
    Is this possible and how?
    Thank you for your help
    Thomas

    Hi Thomas,
    You can influence the filename with the ModuleTransformBean. You need at least SP9 for this feature.
    In the Mail Receiver Channel got to tab "Module"
    As first module (before the mail module) enter:
    localejbs/AF_Modules/MessageTransformBean as Local Enterprise Bean with any key
    For this module key you can use in the module configuration following entries:
    Transform.ContentDisposition inline|attachment;filename=<filename>
    Transform.ContentDescription <Filename>
    Transform.ContentType <MimeType>/<SubType>;name="<filename>"
    If you want to send an attachment, use:
    Transform.ContentDisposition attachment;filename="MyFile.csv"
    Transform.ContentDescription MyFile
    Transform.ContentType text/plain;name="MyFile.csv"
    If you use the Mail Package, you can set the file name that way:
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <Subject>Hello</Subject>
      <From>[email protected]</From>
      <To>[email protected]</To>
      <Content_Type>text/plain;name="MyFile.csv"</Content_Type>
      <Content>Here comes the CSV Data</Content>
    </ns:Mail>
    Hope that helps,
    Stefan

  • Adobe PDF-based print forms - how to send pdf-form by mail?

    Hello All.
    I have created a PDF-form and now I want to send the form by mail without
    seeing it on my screen first. I want it to be done in the backround.
    I'm not using java/abap web dynpro.
    Can somebody help me with this?
    Thanks, Barak.

    hi
    good
    go through this link hope this would help you solve your problem
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
    reward point if helpful.
    thanks
    mrutyun^

  • How to send table contents as mail attachment.

    Hi,
       I am showing data into webdynpro table by accessing database. Now i have to send these data through mail to different persons. How can i do it. I tried it by sending the table elements into excel files but i am facing some problems. can it be done through HTML files??
          Please give a solution to it.
          Thanks and Regards..
          Pankaj Kumar.

    Pankaj
    I am giving sample code here.
    Put this code in an action behind Send Mail button on your iview as an example.
    Also add external jar file mail.jar to your web dynpro project to achieve your objective.
         if(wdContext.currentContextElement().getTest()== null)
              IWDWindowInfo windowInfo1 = wdComponentAPI.getComponentInfo().findInWindows("EnterText");
              IWDWindow window1 =wdComponentAPI.getWindowManager().createWindow(windowInfo1,true);
              window1.open();
              window1.setWindowPosition(300,300);
              wdContext.currentContextElement().setEmptyText(window1);
         } else
              Properties props = new Properties();
              String host = "XXX.XXX.X.X"; /*ip address of mail server */
              props.put("mail.smtp.host", host);
              props.put("mail.smtp.port", "25");
              props.put("mail.smtp.auth","false");
         //     auth = new AuthenticationBean();
              Session session = Session.getInstance(props, null);
               MimeMessage  message = new MimeMessage (
              Session.getInstance ( props, null ) );
             Address toAddress = new InternetAddress();
              Address fromAddress = new InternetAddress();
              Address ccAddress = new InternetAddress();
              Address bccAddress = new InternetAddress();
                     //new window code
                   IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("SuccessWindow");
                   IWDWindow window =wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
                   window.open();
                   window.setWindowPosition(300,300);
                   wdContext.currentContextElement().setSuccess(window);
            try
                   MimeMultipart multipart = new MimeMultipart();
                   BodyPart messageBodyPart = new MimeBodyPart();
                     fromAddress = new InternetAddress(wdContext.currentContextElement().getFromEmail());
                   message.setFrom(fromAddress);
                   toAddress = new InternetAddress(wdContext.currentContextElement().getRfcEmail());
                   wdContext.currentContextElement().setErr(wdContext.currentContextElement().getRfcEmail());
                   message.setRecipient(Message.RecipientType.TO, toAddress);
                   message.setSubject(wdContext.currentContextElement().getMycontactDD());
                   messageBodyPart.setText("Message From :"" " wdThis.wdGetMailAppController().wdGetContext().currentContextElement().getName()"\r\n""\r\n"+wdContext.currentContextElement().getTest());
                   multipart.addBodyPart(messageBodyPart);
                   message.setContent(multipart);
                   Transport.send(message);
                 catch (AddressException e)
                             wdComponentAPI.getMessageManager().reportWarning(e. getLocalizedMessage());
                              e.printStackTrace();
                 catch (SendFailedException e)
                        wdComponentAPI.getMessageManager().reportWarning(e. getLocalizedMessage());
                         e.printStackTrace();
                 catch (MessagingException e)
                         wdComponentAPI.getMessageManager().reportWarning( e.getLocalizedMessage());
                         e.printStackTrace();
    Please award points if this helps as this will give you a hint for sending mails.

  • Error to Send PDF file using mail

    Hi all,
    I create a report that send an mail with 2 different pdf attach.
    I have a problem because one pdf attach is 663 KB and when I read it in mail it can not open the file and give me this error  :
    "Error opening PDF file --> There was an error opening this document.the file is damaged and could not be repareid "
    I send the same mail with another PDF file (64,2 KB) and all it's work correct.
    This files are in my application server, and this is the code that I use to read and send :
    data:   gt_table TYPE TABLE OF solix,
               gs_table LIKE LINE OF gt_table.
    open dataset wa for input in binary mode.
    if sy-subrc eq 0.
      do.
        read dataset wa into gs_table LENGTH alen.
        ctr = ctr + alen.
        if sy-subrc ne 0.
          exit.
        endif.
        append gs_table to gt_table.
      enddo.
    endif.
    close dataset wa.
    TRY.
    (1) crea Oggetto
          l_send_request = cl_bcs=>create_persistent( ).
    (2) E-Mail - Crea Oggetto e Body del messaggio
    (5)  bcs attachment
    l_attachment_size = ctr."tab_lines * 255.
          CALL METHOD l_doc->add_attachment
            EXPORTING
              i_attachment_type    = 'PDF'
              i_attachment_subject = l_attachment_subj
              i_attachment_size    = l_attachment_size
              i_att_content_hex    = gt_table."xsolix[].
    CALL METHOD l_send_request->set_document( l_doc ).
          CALL METHOD l_send_request->set_priority
            EXPORTING
              i_priority = '1'.
          CALL METHOD l_send_request->set_send_immediately( 'X' ).
    I find this link but the problem are not resolve : Compress Smartform PDF file before sending mail
    Can anyone help me to understand where is the problem ?
    thanks a lot
    Barbara

    Hi,
    I find the way to resolve this topic, thanking a collegue.
    The problem is the way that I use to read the file.
    If I read the file in the following way, the problem concerning the size are bypassing.
    DATA : gs_table LIKE LINE OF gt_table.
      DATA: l_xstring TYPE xstring.
      DATA : alen TYPE i.
      OPEN DATASET  p_p_file FOR INPUT IN BINARY MODE.
      IF sy-subrc EQ 0.
       DO.
        READ DATASET p_p_file INTO l_xstring.
         p_bin_filesize = p_bin_filesize + alen.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         APPEND gs_table TO gt_table.
       ENDDO.
      ENDIF.
      CLOSE DATASET p_p_file.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer                = l_xstring
        APPEND_TO_TABLE       = ' '
         IMPORTING
           output_length         = p_bin_filesize
          TABLES
            binary_tab            =  gt_table .
    thanks a lot
    barbara

  • Please instruct me on how to send pdf's in "MAIL" application

    Hi all
    After a 4 year abscence from Apples Mail program, I am back. I really like all of the apps, but I am having the same problems from 4 years ago and I really dont want to go back to Entourage.
    After 2 days of researching this PDF topic, I still dont have a definitive answer.
    This is the problem/question.
    All of my clients who are on PC's (some AOL accounts) cannot open my pdfs I am sending. No problems with anything else jpegs, docs etc. ONLY PDF's. They say they are recieving them as just "file". FYI these people arent tech savy.
    I have tried everything in the Mail app...windows friendly attachment, rich text, plain text, downloaded iconizer, actual size, view as icon, with and without a signature, etc. No clue what could be wrong.
    The pdfs are created through InDesign (High Quality Setting) and open fine on a Mac through Acrobat Reader.
    Please let me know if I need to provide you with anymore info to resolve this problem. I really dont want to go back to Microsoft. Help Please.
    Chris
    MacBook Pro 17   Mac OS X (10.4.8)  

    You should not use the Image Size adjustment for a PDF attachment that appears inline or viewed in place within the body of the message which applies to single page PDF files only.
    AOL has always been problematic with attachments but since all clients are not AOL recipients, have you tried zipping the file or files before being attached?
    This can be done via the Finder.

  • Sending SmartForm as E-mail attachment, with email subject and content

    Hi,
    I'm, e-mailing a SmartForm using the SmartForm parameters (MAIL_RECIPIENT, MAIL_SENDER and MAIL_APPL_OBJ) using control device 'MAIL'.
    Create MAIL_RECEPIENT (swotobjid): CREATE_RECIPIENT_OBJ_PPF
    Create MAIL_SENDER (swotobjid): CREATE_SENDER_OBJECT_PPF
    Create MAIL_APPL_OBJ: This works a little different. The sender needs to have an SAP Office Inbox (SO_USER_AUTOMATIC_INSERT) where a folder is to be created using the marco's swc_create_object and swc_object_to_persistent (INCLUDE <cntn01>).
    Everything works fine.
    The mail is being send and the SmartForm can be accessed as attachment, the E-Mail subject (as the name of the attachment) is taken from the title of the SmartForm (output_options-tdtitle).
    QUESTION *
    No they want to change the E-mail subject en change the content(body) of the mail.
    Is this possible within the options of the MAIL_APPL_OBJ.
    Or do have to rebuild the SmartForm program, get the SmartForm as OTF, rebuild as PDF en mail the PDF to the recepient using the SO_NEW_DOCUMENT_ATT_SEND_API1.
    I was thinking of creating a container and set the elements of that container (swc_set_table ?) but I don't no in the end if this woll work.

    Refer the following Blog-
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID0426134050DB01517382336190791762End?blog=/pub/wlg/1798
    generate filename as yesterday's yyyymmdd format, and it must send file with same name with yyyymmdd
    You need to use the following UDF to generate yesterday's date-
    Imports: java.text.;java.util.;
    public String yesterday(Container container)
    long oneDay = (long) 1000.0 * 60 * 60 * 24;
    DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
    java.util.Date today = new java.util.Date(System.currentTimeMillis());
    java.util.Date yesterday = new java.util.Date(System.currentTimeMillis()-oneDay);
    String b = dateFormat.format(yesterday);
    return b;
    Map this with Content_Disposition as mentioned in wiki.
    XI 3.0 message must be executed one a day automatically (for example at 9.00 Am).
    Use 'Availability Time planning' for CC as mentioned above.
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/06bd029da31122e10000000a11466f/content.htm

Maybe you are looking for