Embed an mht file in emails

Hi
I've written a small program that allows an html file to be embedded inside an email message. The html appears as the message body when the recipient opens the email.
My code uses the following statement:
mbp.setDataHandler(new DataHandler(source1));Where mbp is a MimeBodyPart and source1 is an HTML file.
I wondered if it is possible to embed an mht file in the same way?
I've tried but with no success thus far.
Thanks for any advice
GB

[http://filext.com/file-extension/mht|http://filext.com/file-extension/mht]
You want to create a multipart/related message. See the FAQ and this forum for more help.

Similar Messages

  • Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email? So that the user can print it out.

    Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email?
    I'm making the book for children and there is one chapter providing coloring pages. So I wish to attach pdf files that allow users to download it at the end of chapter so that  they can print it out. Been searching through discussion, I've found some advice about taking screen snapshot page-by-page > then send the pics from photo album to email. However, I'm wondering if there's a way that make the process easier.

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • How can I embed a pdf file into the body of an email?

    How can I embed a pdf file into the body of an email?

    The problem is defining what it even means to “embed” a PDF file in the body of an e-mail, especially if you are dealing with a multiple page PDF file.
    E-mail is either pure text, rich text (something akin to RTF in Word), or HTML. PDF is not compatible with any of these. Thus, to embed a PDF file, something has to be converted and that means the PDF would be converted to a less graphically rich raster format. But is that what you would really want?
    I think that the MacOS and iOS e-mail clients do under some circumstances place an attached PDF file within HTML segments and by clicking on same, you get the equivalent of extracting the full PDF file, but I have no real experience with that.
    Another alternative is HTML with a proxy image with a hyperlink to an external PDF file that is invoked when you click on the hyperlink.
    Perhaps you can explain what you are really trying to accomplish and what the recipient of such an e-mail's actual experience would be?
              - Dov

  • MHT files cannot be sent using Eudora email - buffer overrun error

    Previous Firefox versions allowed quick email forwarding of website url addresses. The current version defaults to generating an MHT file and when Eudora 7.1 is selected as the email preference, the following error message appears:
    " Buffer overrun detected!
    Program: C:\Program Files(x86)\Qualcomm\Eudora\Eudora.exe
    A buffer overrun has been detected which corrupted the program's internal state. The program cannot safely continue execution and must now be terminated."
    It would be much easier just to continue email forwarding of the website url address

    hello wmsharpe, there should still be an "email link" option that you can place on your menu/toolbar once you go into the firefox customizing mode: [[Customize Firefox controls, buttons and toolbars]]

  • Embed .html file in eMail

    Hi,
    i need to embed a .html file (to send as a newsletter) in the mail.
    pls let me know how to do.
    it will be more useful if u send a sample code.
    Thanks,
    Natesh.

    http://java.sun.com/developer/EJTechTips/2004/tt0426.html#1
    and other examples in google
    http://www.osix.net/modules/article/?id=39

  • Unwanted .mht file--CRASHES WORD

    Problem:
    I'm using Mac OS X 10.8.5
    Suddenlink emailed a .mht file which I tried to open by clicking on it. 
    Word launched and was unsuccessful in opening the file. I had to force quit Word.
    Later…
    tired opening Word.doc file and earlier .mht file tired to load.
    Crashed Word again.
    I deleted email with the attachment and saved the .mht file to desktop.
    Looked on support sites and changed extension. to .eml
    Spotlight search shows no .mht files on computer.
    Still cannot open Word without attempts to open .mht file and crashes before I can
    look at properties or change the ext. on the property tab.
    It's frustrating because I can't use Word at all.
    Suggestions?
    Much appreciated....
    Thank you

    Luckily I was able to grab the location of the file before Word crashed and was able to locate the file and delete it.  Thanks!

  • Can I share files, especially email, between 2 Macs via iCloud?

    I have 2 Macs - an iMac for business at a fixed location and a Powerbook (which is much older) for traveling.  I want to share files, especially email, between the 2 Macs.  Can I do this using iCloud?

    Some more info is probably necessary.  My Powerbook is NOT using Lion.  In fact, it can't because its processor is too old.  Can I use iCloud with it?
    Also I use Entourage (Microsoft Office) for Mail and that's where I really need to share data, emails, etc.

  • Is it possible for a user to embed a graphic file in a form?

    Hi all,
    I'm designing a form that users will submit to report problems with software packages to our support teams. I would like the user completing the form to be able to embed a screenshot of the problem they are having into the form (I was planning to put this in a repeating table so that they can add more than one screenshot).
    What I don't want to do, however, is have the actual full size screenshot displayed, when they embed the screenshot file. I want there to be an icon that 'represents' the screenshot that the support personnel can then double click on to actually view it (a bit like embedding objects in MS Words docs I suppose).
    Does anyone know if this is possible? The Image Field controld doesn't seem to work in this manner.
    Thanks
    Matt

    In one of my forms I used similar concept, however I used Button and Image overlay on each other and have code under Button Click event....But the code attaches any document/file the user chose attach rather than just screenshot....this could be starting point for you to try some thing you want.... Following is the code I used....
    var aInstance = this.parent.index; //this is the table row instance in your case
    var selectFileName = "ScreenShot" + aInstance; //this is to assign a relative name for each image they like to upload
    var doc = event.target;doc.importDataObject(selectFileName); //opens the dialog box for user to navigate and select any file to attach
    var MyPar1 = doc.getDataObject(selectFileName); 
    var filename = MyPar1.path; //get the file path in to a variable so you can extract the name of the file they select and determine type of the file and do some exception coding.
    Good luck,

  • My files, photos, email files, software programs, and all information did NOT transfer over to Mavericks (from Mt. Lion).  How do I get all my stuff to appear when using Mavericks?

    Will someone please help me?
    My files, photos, email files, software programs, calendar info, and all information did NOT transfer over to Mavericks (from Mt Lion).  How do I get all my stuff to appear when using Mavericks?
    My email did transfer over.
    Thank you.

    First click on the Apple > Logout and Log back in or restart the unit see if that solves it.  If it doesn't do you have a backup of your system prior to upgrade?  Check Disk Utility and see how much space is being used to make sure the drive wasn't somehow erased.

  • How can I construct Group contact files of email addresses?

    How can I construct 'Group' files of email addresses, i.e. the equivalent of files of multiple email addresses that are easily constructed in Outlook Express for sending an email to multiple people by simply entering the name of the file containing the email addresses to which one wishes to send a given email?

    Unfortunately, you can't do that in the contacts app or in the mail app on the iPad. There are a couple of third party apps that I know that will do that for you. MailShot and Group Email With Attachments.
    https://itunes.apple.com/us/app/mailshot-group-email-done/id410279354?mt=8
    https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8

  • Problem in attaching a xml file in Email Notification

    Hi,
    I am new to BPEL. I am using 10.1.3.4 Jdev. Facing a problem in attaching a xml file in Email Notification process. I do not get any email when ever the attachment is a xml. Whereas when the attachment is a pdf, i get the pdf in the mail. I have put the mime type as text/xml. Used ora:doc() to read the xml. Dont know what i am missing. Please help me out. Thanks.
    Edited by: friendsforever on Oct 6, 2010 1:05 AM

    actually i want that when a user open my website register form then he must attached their resume in it
    so i want to know how can i make a field of attaching.
    please reply
    I am waiting for your reply

  • Error while sending PDF file by Email

    Hi All,
    I have a requirement to send multiple files by Email attachement from SAP to internet address.
    All files sent correctly, except one PDF file.
    I have 2 spools, and I am using FM CONVERT_OTFSPOOLJOB_2_PDF to get PDF data for Spool.
    Then I am converting the 134 length PDF data to 255 Email Attachement binary table.
    Now I have 2 file F1.PDF and F2.PDF, in SAP Office outbox and in receivers email, F2.PDF opening fine, however for F1.PDF I am getting some error no 109 in Adobe, which says "There was an error processing a page.There was a problem reading this document. (109)".
    Please help in figuring out the reason for this.
    Additional Information F2.PDF has some text data (SAP Script output) and F1.PDF has some text data with logo (SAP Script Output)
    Thanks in advance

    hi check out following code..
    REPORT ZRICH_0003.
    DATA: ITCPO LIKE ITCPO,
    TAB_LINES LIKE SY-TABIX.
    Variables for EMAIL functionality
    DATA: MAILDATA LIKE SODOCCHGI1.
    DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
    DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    PERFORM SEND_FORM_VIA_EMAIL.
    FORM SEND_FORM_VIA_EMAIL *
    FORM SEND_FORM_VIA_EMAIL.
    CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    Creation of the document to be sent File Name
    MAILDATA-OBJ_NAME = 'TEST'.
    Mail Subject
    MAILDATA-OBJ_DESCR = 'Subject'.
    Mail Contents
    MAILTXT-LINE = 'Here is your file'.
    APPEND MAILTXT.
    Prepare Packing List
    PERFORM PREPARE_PACKING_LIST.
    Set recipient - email address here!!!
    MAILREC-RECEIVER = '[email protected]'.
    MAILREC-REC_TYPE = 'U'.
    APPEND MAILREC.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = MAILDATA
    PUT_IN_OUTBOX = ' '
    TABLES
    PACKING_LIST = MAILPACK
    OBJECT_HEADER = MAILHEAD
    CONTENTS_BIN = MAILBIN
    CONTENTS_TXT = MAILTXT
    RECEIVERS = MAILREC
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    OPERATION_NO_AUTHORIZATION = 4
    OTHERS = 99.
    ENDFORM.
    Form PREPARE_PACKING_LIST
    FORM PREPARE_PACKING_LIST.
    CLEAR: MAILPACK, MAILBIN, MAILHEAD.
    REFRESH: MAILPACK, MAILBIN, MAILHEAD.
    DESCRIBE TABLE MAILTXT LINES TAB_LINES.
    READ TABLE MAILTXT INDEX TAB_LINES.
    MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
    Creation of the entry for the compressed document
    CLEAR MAILPACK-TRANSF_BIN.
    MAILPACK-HEAD_START = 1.
    MAILPACK-HEAD_NUM = 0.
    MAILPACK-BODY_START = 1.
    MAILPACK-BODY_NUM = TAB_LINES.
    MAILPACK-DOC_TYPE = 'RAW'.
    APPEND MAILPACK.
    Creation of the document attachment
    This form gets the OTF code from the SAPscript form.
    If you already have your OTF code, I believe that you may
    be able to skip this form. just do the following code, looping thru
    your SOLISTI1 and updating MAILBIN.
    PERFORM GET_OTF_CODE.
    LOOP AT SOLISTI1.
    MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
    APPEND MAILBIN.
    ENDLOOP.
    DESCRIBE TABLE MAILBIN LINES TAB_LINES.
    MAILHEAD = 'TEST.OTF'.
    APPEND MAILHEAD.
    Creation of the entry for the compressed attachment
    MAILPACK-TRANSF_BIN = 'X'.
    MAILPACK-HEAD_START = 1.
    MAILPACK-HEAD_NUM = 1.
    MAILPACK-BODY_START = 1.
    MAILPACK-BODY_NUM = TAB_LINES.
    MAILPACK-DOC_TYPE = 'OTF'.
    MAILPACK-OBJ_NAME = 'TEST'.
    MAILPACK-OBJ_DESCR = 'Subject'.
    MAILPACK-DOC_SIZE = TAB_LINES * 255.
    APPEND MAILPACK.
    ENDFORM.
    Form GET_OTF_CODE
    FORM GET_OTF_CODE.
    DATA: BEGIN OF OTF OCCURS 0.
    INCLUDE STRUCTURE ITCOO .
    DATA: END OF OTF.
    DATA: ITCPO LIKE ITCPO.
    DATA: ITCPP LIKE ITCPP.
    CLEAR ITCPO.
    ITCPO-TDGETOTF = 'X'.
    Start writing OTF code
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    FORM = 'ZTEST_FORM'
    LANGUAGE = SY-LANGU
    OPTIONS = ITCPO
    DIALOG = ' '
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'START_FORM'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    WINDOW = 'MAIN'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    Close up Form and get OTF code
    CALL FUNCTION 'END_FORM'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    MOVE-CORRESPONDING ITCPO TO ITCPP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = ITCPP
    TABLES
    OTFDATA = OTF
    EXCEPTIONS
    OTHERS = 1.
    Move OTF code to structure SOLI form email
    CLEAR SOLISTI1. REFRESH SOLISTI1.
    LOOP AT OTF.
    SOLISTI1-LINE = OTF.
    APPEND SOLISTI1.
    ENDLOOP.
    ENDFORM.

  • PDF FILE AS EMAIL ATTACHMENT

    Dear Experts,
                              How to send pdf file as email atachment, can some one give me some codings or links.
    Thanks and REgards,
    Thirukumaran. R

    Mailing is possible when i open the pdf file it's giving the  decoding  error
    i here with attached the codings for ur ref.
    FUNCTION Z_HRFM_SEND_OFFERLETTER_MAIL.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_APPLID) TYPE  PERSNO
    *"     VALUE(IV_REPMGR) TYPE  PERSNO
    *"     VALUE(IV_CONTROLMGR) TYPE  PERSNO
    *"     VALUE(IV_REPFMGR) TYPE  PERSNO
    *"     VALUE(IV_ACTION) TYPE  MASSN
    *"     VALUE(JOIN_1000) TYPE  DATS
    *"     VALUE(POSITION_1000) TYPE  STEXT
    *"     VALUE(PLACE_1000) TYPE  ORT01
    *"     VALUE(LOC_1000) TYPE  ORT01
    *"     VALUE(GROSS_1000) TYPE  NUMC7
    *"     VALUE(BASIC_1000) TYPE  NUMC5
    *"     VALUE(CONV_1000) TYPE  NUMC5
    *"     VALUE(FOOD_1000) TYPE  NUMC5
    *"     VALUE(VAR_1000) TYPE  NUMC5
    *"     VALUE(PERNR1_1000) TYPE  PERSNO
    *"     VALUE(COMP_ADD) TYPE  CHAR200
    *"  EXCEPTIONS
    *"      APPLICANT_NOT_FOUND
    *"      REPFORM_MGR_NOT_FOUND
    *"      REPMGR_NOT_FOUND
    *"      CONTROLMGR_NOT_FOUND
    *"      NO_EMAILID_FOUND
    *"      SENT
    *"      NOT_SENT
    *&   CREATION INFORMATION                                                                       *
    *&   AUTHOR           : thiruKumaran
    *&   CREATION DATE    : 29.07.2009                                                            *
    *&   TRANSPORT REQUEST:                                                              *
    *&   FUNCTIONAL SPEC# :                                                                         *
    *&   TECHNICAL SPEC#  :                                                                         *
    *&   PURPOSE          :
    * Local Variable Declaration
    data : EV_APPLNAME  TYPE  EMNAM,
    EV_REPMGR_NAME  TYPE  EMNAM,
    EV_CONTROLMGR_NAME  TYPE  EMNAM,
    EV_CONTROLMGR_GEN TYPE  CHAR2,
    EV_REPMGR_GEN TYPE  CHAR2,
    EV_APPL_GEN TYPE  CHAR2,
    EV_REPFORM_GEN  TYPE  CHAR2,
    EV_REPFORM_NAME TYPE  EMNAM,
    EV_STRAS  TYPE  STRAS,
    EV_ORT01  TYPE  ORT01,
    EV_ORT02  TYPE  ORT02.
      DATA : l_APPname         TYPE  emnam,
             l_evaluation_date TYPE begda,
             l_extension_date  TYPE begda,
             l_emailid         TYPE comm_id_long,
             tab_lines         TYPE sy-tabix,
             fm_name           TYPE rs38l_fnam.
    data:/1BCDWB/FORMOUTPUT type  FPFORMOUTPUT ,
         /1BCDWB/DOCPARAMS  type SFPDOCPARAMS ,
         ie_outputparams   type SFPOUTPUTPARAMS .
    DATA : CONTENTS_HEX TYPE  SOLIX.
    * Structure Declaration
      DATA : s_job_info       TYPE ssfcrescl,
             s_control_param  TYPE ssfctrlop,
             s_composer_param TYPE ssfcompop,
             s_doc_data       TYPE sodocchgi1.
    * Internal Table Declaration
      DATA : i_otfdata      TYPE TABLE OF itcoo,
             i_pdf          TYPE TABLE OF solisti1,
             i_pdfdata      TYPE TABLE OF tline,
             i_receivers    TYPE TABLE OF somlreci1,
             i_packing_list TYPE TABLE OF sopcklsti1,
             i_message      TYPE TABLE OF  solisti1.
    *& Work area declaration.
      DATA : w_receivers    LIKE LINE OF i_receivers,
             w_packing_list LIKE LINE OF i_packing_list,
             w_message      LIKE LINE OF i_message.
      CALL FUNCTION 'Z_HRFM_GET_OFFERED_DATA'
        EXPORTING
          IV_APPLID                   = IV_APPLID
          IV_REPMGR                   = IV_REPMGR
          IV_CONTROLMGR               =  IV_CONTROLMGR
          IV_REPFMGR                  = IV_REPFMGR
          IV_ACTION                   = IV_ACTION
       IMPORTING
         EV_APPLNAME                 = EV_APPLNAME
         EV_REPMGR_NAME              = EV_REPMGR_NAME
         EV_CONTROLMGR_NAME          = EV_CONTROLMGR_NAME
         EV_CONTROLMGR_GEN           = EV_CONTROLMGR_GEN
         EV_REPMGR_GEN               = EV_REPMGR_GEN
         EV_APPL_GEN                 = EV_APPL_GEN
         EV_REPFORM_GEN              = EV_REPFORM_GEN
         EV_REPFORM_NAME             = EV_REPFORM_NAME
         EV_STRAS                    = EV_STRAS
         EV_ORT01                    = EV_ORT01
         EV_ORT02                    = EV_ORT02
       EXCEPTIONS
         APPLICANT_NOT_FOUND         = 1
         REPFORM_MGR_NOT_FOUND       = 2
         REPMGR_NOT_FOUND            = 3
         CONTROLMGR_NOT_FOUND        = 4
         OTHERS                      = 5.
      IF sy-subrc  = 1.
        RAISE applicant_not_found.
      ELSEIF sy-subrc  = 2.
        RAISE repform_mgr_not_found.
      ELSEIF sy-subrc = 3.
        raise    REPMGR_NOT_FOUND.
        ELSEIF sy-subrc = 4.
          raise CONTROLMGR_NOT_FOUND .
      ENDIF.
    *finding email id of applicant
      SELECT SINGLE usrid_long INTO l_emailid FROM pb0105
        WHERE pernr = IV_APPLID AND subty = '0010' AND endda = '99991231'."#EC *
      IF sy-subrc <> 0.
        RAISE no_emailid_found.
      ENDIF.
    *  s_control_param-no_dialog = 'X'.
    *  s_control_param-getotf    = 'X'.
    *  s_composer_param-tddest   = 'LP01'.
    *  s_composer_param-tdnoprev = 'X'.
    * Sending PDF by mail
    CALL FUNCTION  '/1BCDWB/SM00000046'    "'ZHR_OFFER_FORM'
    *"'/1BCDWB/SM00000046'
      EXPORTING
       /1BCDWB/DOCPARAMS        = /1BCDWB/DOCPARAMS
        APPLICANT_NAME           = EV_APPLNAME
        POSITION                 = POSITION_1000
        JOINING_DATE             = join_1000
        REPFORM                  = EV_REPFORM_NAME
        REPMGR                   = EV_REPMGR_NAME
        CONTROLMGR               = EV_CONTROLMGR_NAME
        PLACE                    = PLACE_1000
        APPLICANT_GENDER         = EV_APPL_GEN
        BASE_PLACE               = loc_1000
        REPMGR_GENDER            = EV_REPMGR_GEN
        REPFORM_GENDER           = EV_REPFORM_GEN
        CONTROLMGR_GENDER        = EV_CONTROLMGR_GEN
        GROSSS                   = gross_1000
        BASIC                    = basic_1000
        CONVEYANCE               = conv_1000
        FOOD                     = food_1000
        VARIABLE                 =  var_1000
        CITY                     = ev_ORT01
        DISTRICT                 = ev_ORT02
        ADDRESS                  = ev_stras
        C_DATE                   = sy-datum
        APPLICANTID              = pernr1_1000
        comp_address             = comp_add
    IMPORTING
       /1BCDWB/FORMOUTPUT       = /1BCDWB/FORMOUTPUT
    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.
    ENDIF.
    *data : binary_tab.
    call function 'SCMS_XSTRING_TO_BINARY'
      exporting
        buffer                = /1BCDWB/FORMOUTPUT-PDF
      tables
        binary_tab            = I_PDFDATA.
    REFRESH i_pdf[].
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
          EXPORTING
            line_width_dst = '255'
          TABLES
            content_in     = i_pdfdata
            content_out    = i_pdf.
        DESCRIBE TABLE i_pdf LINES tab_lines.
    ****for mailing********
        w_receivers-receiver = l_emailid.
        w_receivers-rec_type = 'U'.
        w_receivers-com_type = 'INT'.
        APPEND w_receivers TO i_receivers .
        s_doc_data-obj_name =  text-001.
        s_doc_data-obj_descr = text-001.
        CLEAR w_packing_list-transf_bin.
        w_packing_list-head_start = 1.
        w_packing_list-head_num   = 0.
        w_packing_list-body_start = 1.
        w_packing_list-doc_type   = 'RAW'.
        w_packing_list-body_num   = tab_lines.
        APPEND  w_packing_list TO i_packing_list.
        CLEAR w_packing_list.
        w_packing_list-transf_bin = 'X'.
        w_packing_list-head_start = 1.
        w_packing_list-head_num   = 1.
        w_packing_list-body_start = 1.
        w_packing_list-doc_type   = 'PDF'.
        w_packing_list-body_num   = tab_lines.
        w_packing_list-doc_size   = tab_lines * 255.
        w_packing_list-obj_descr  = text-001.
        w_packing_list-obj_name   = text-001.
        APPEND  w_packing_list TO i_packing_list.
    *& Writing mail message
      concatenate  'Hi' EV_APPLNAME into l_APPname separated by space.
      w_message = L_APPNAME.
      APPEND w_message TO i_message.
      w_message = text-009.
      APPEND w_message TO i_message.
      w_message = text-002.
        APPEND w_message TO i_message.
      w_message = text-990.
      APPEND w_message TO i_message.
      w_message = text-003.
        APPEND w_message TO i_message.
      w_message = text-990.
      APPEND w_message TO i_message.
      w_message = text-004.
      APPEND w_message TO i_message.
      w_message = text-005.
      APPEND w_message TO i_message.
        "Call the FM to post the message to SAPMAIL
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = s_doc_data
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = i_packing_list
            contents_txt               = i_message
    *        contents_bin               = i_pdf
            CONTENTS_HEX               = I_PDF
            receivers                  = i_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.
    if sy-subrc = 0.
      raise sent.
      else.
        raise not_sent.
      endif.
    * To send mail immediatly
        IF sy-subrc = 0.
          WAIT UP TO 2 SECONDS.
          SUBMIT rsconn01 WITH mode = 'INT'
                               AND RETURN.
        ENDIF.
    ENDFUNCTION.
    can u give some suggestions,
    Thanks and REgards,
    Thirukumaran. R

  • After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading.

    After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading. I have no special software like numbers or anything else installed on either device. Just using the default viewer provided by apple for viewing email.

    The attachment is an .xls excel 97-2003 spreadsheet. I viewed the file in the email and did not edit it with any software. I can forward the file to anyone that is may want to check it out to see if they can help me. I was wondering if there was some way of forcing another ios6 install on my phone and maybe that would solve it.
    Is there anyone out there that is viewing .xls files in email using ios6 w/o any other software installed like numbers or any other add ons? I am not upgrading my ipad from ios5 to ios6 so I can still continue to view the emails on my ipad. Is there an email viewer .xls plug-in that will be availablle in the next ios6 update?

  • How can I open .mht files on my macbook pro?

    How can I open pc created .mht files on my macbook pro?

    download the browser "Opera".

Maybe you are looking for

  • Use of args with array

    Hello, Pls can anyone tell me what this particualr line in the program below means: double earthWeight = Double.parseDouble(args[0]); The code is within the main method. Does it mean that every argument that is passed to the main method should be par

  • Downloaded itunes tv shows but says it is wrong format

    I have an Touch iPod.  I downloaded Dexter season 6.  iTunes is telling me it is in the wrong format to play on my Touch.  Seasons 1-5 worked fine.  Did that change video formats that has obsoleted my Touch?  All hardware and QuickTime is up to date.

  • Unpublished folio falls to bottom of content viewer?

    Is this a "feature change" - or a bug? Unpublished folios now sort to the bottom when viewing the Adobe ID with Content Viewer. Unless you "Preview on Ipad" - in which case it sorts to the top as it has in the past. Anyone else notice this quirk?

  • How can i change the language of my installed Photoshop CC? I would like it to be in english.

    I live in Finland and it automatically installed the PS CC in finnish. Not cool I would like it to be in english.

  • Problem about checkbox for script generator

    Hi friends, I wish successes to everybody! My question is such: When i change the value of the following code (value="0") that is shown in the situation to checked But when i click the submit button nothing is generated so how to get my page on check