HTML Format via Email

When sending output via email in HTML format (from rtf template), all the formating is lost, layout just expands horizontally.
Output is correct when displayed in pdf format.
Also occurs when previewing the output.
Further information:
This is purely a custom rtf template created for remittance report. In the rtf template we have used the filler, we have kept many conditions like if the data spills over to next page based on number of lines,and if the number of data lines is less then also it should align and fit to the table /page etc.
If we remove the filler the output will shrink to half page in HTML page and WE DO NOT want this kind of report output. We need the report output in HTML which should fir to paper size(A4 size) even we have less number of data rows.
Any assistance would be appreciated.
Thanks
Sarah

Thanks for your response.
The customer has updated with the following:
The problem here is the standard program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices" sets the output type to HTML if the remittance advice delivery method is "MAIL". Below is the extract from the log file of the program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices"
******** EXTRACT BEGIN ********
Since the delivery method is EMAIL, the XML Publisher output type is set to be html.
********* EXTRACT END *********
This causes the following issue: -
The concurrent program ends without generating a pdf output and hence cannot be emailed out as a pdf document.
Action required from you: -
[1] Ensure that the standard program does not default the output type to HTML for email. This should be PDF instead.
[2] Ensure that IBY XDO Delivery, sends the PDF output as an attachment.

Similar Messages

  • Need to send HTML table via email

    Hi Experts,
    I am using the FM EFG_GEN_SEND_EMAIL to send email but unable to send html content through this. I know I could use SO_SEND_OBJECT FM too which automatically sends the email in HTML format but it doesn't have from option(FROM EMAIL ID)
    I tired manually chaning the format from RAW to HTM via debugging and then found that its sending the html format email.
    Request you to please let me know if we could achieve the same.
    Thanks,
    Rajwin

    Hi,
    rcently we idd this requirment .
    But every thing we did it from ABAP side   not from WDJ Side
    Generation of PDF after enterring the data will be send via email along with PDF Data so try to use  Smart Forms
    Regards,
    Govindu

  • Report's HTML ouput via Email

    Hi falks!
    We are facing the issue that when we try to send a report via Email in HTML format it does not export table borders. Any idea about this issue?
    Any help will be appreciated!
    Thanks for your time.
    Regards,
    Ariel

    Thanks for your response.
    The customer has updated with the following:
    The problem here is the standard program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices" sets the output type to HTML if the remittance advice delivery method is "MAIL". Below is the extract from the log file of the program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices"
    ******** EXTRACT BEGIN ********
    Since the delivery method is EMAIL, the XML Publisher output type is set to be html.
    ********* EXTRACT END *********
    This causes the following issue: -
    The concurrent program ends without generating a pdf output and hence cannot be emailed out as a pdf document.
    Action required from you: -
    [1] Ensure that the standard program does not default the output type to HTML for email. This should be PDF instead.
    [2] Ensure that IBY XDO Delivery, sends the PDF output as an attachment.

  • I cannot send a Pages document, Word format via email from my ipad if it has a picture in the the doc.  I can send a Word doc if it does not have a pic in it or pdf with a pic.  Any thoughs why a word doc with a pic in it won't email in Pages?  thanks

    I cannot send a Pages document, Word via email if the doc contains a picture.  If I email a Pages doc without a pic in Word format or pdf with a pic it with go through to sender?  Not sure why Pages won't send Word doc with a picture in it.  I check the security on the email recipient and the email doesn't get blocked or throw in the junk box?
    thanks,
    drainguy41

    If you have upgraded to Mountain Lion, Save As… has returned to the File menu when you hold down the Option/alt key. But you don't really "save" as other file types, you translate & export as Word or RTF or text or PDF & that is easily done by going to File > Export or Share > Export.
    Also, please do us all a favor & don't use all capitals in your posts, either the body of the post or the title. All caps is the internet equivalent of shouting & is very hard to read.

  • Need to send my spool in HTML format as Email attachment

    Hi All,
        Can anyone let me know how to send a HTML attachment in a mail.
    I have a ALV Report, when i execute, my report should pick the ALV Report output from spool, and should send a mail with spool output as HTML attachment.
    Please explain me how i need to do the above.
    Regards
    Nanda

    Hi Nanda,
    You can use 2 reports for this.
    In one report just display the ALV..
    and in the second report submit this first report  to memory and get it html format and then send it as an email.
    Just check this code (instead of alv...this is a normal report that is sent as HTML attachment)
    *--Tables
    TABLES: VBRK.
                     TYPES DECLARATION                                   *
    TYPES: BEGIN OF TY_VBRK,
            KUNAG TYPE KUNAG," Payer Id
           END OF TY_VBRK,
    *-- customer details
           BEGIN OF TY_KNA1,
            KUNNR TYPE KUNNR," Customer Id
            NAME1 TYPE NAME1," Customer Name
            ADRNR TYPE ADRNR," Address No
           END OF TY_KNA1,
    *-- Mailing details
           BEGIN OF TY_ADDR,
            ADDRNUMBER TYPE AD_ADDRNUM, " Address No
            MAIL_ID TYPE AD_SMTPADR,    " Email Address
           END OF TY_ADDR,
    *-- Log details
           BEGIN OF TY_MSG,
            STR1 TYPE AD_SMTPADR, " Email Address
            STR2 TYPE KUNNR,      " Payer Id
            STR3 TYPE NAME1,      " Payer Name
            STR4 TYPE D,          " Date
            STR5 TYPE T,          " Time
           END OF TY_MSG.
                 I N T E R N A L  T A B L E S                            *
    DATA: RECEPIENTS TYPE TABLE OF AD_SMTPADR, "table for email id's
          LISTOBJECT TYPE TABLE OF ABAPLIST,   "table with displayed list
          HTML TYPE TABLE OF W3HTML,           "html container
          RETURN TYPE TABLE_OF_STRINGS,        "message table
          IT_VBRK TYPE TABLE OF TY_VBRK,       "Billing Details
          IT_KNA1 TYPE TABLE OF TY_KNA1,       "Customer Details
          IT_ADDR TYPE TABLE OF TY_ADDR,       "Mail id
          IT_MSG TYPE TABLE OF TY_MSG.         "Log Details
    *-- Structure Declarations
    DATA: WA_REC TYPE AD_SMTPADR,
          WA_KNA1 TYPE TY_KNA1,
          WA_ADDR TYPE TY_ADDR,
          WA_MSG TYPE TY_MSG.
          Declarations for Sending mail                                  *
    *-- To Create link and add recepients address
    DATA: SEND_REQUEST TYPE REF TO CL_BCS.
    *-- To Create HTML document
    DATA: DOCUMENT TYPE REF TO CL_DOCUMENT_BCS.
    *-- To Create Sender Id
    DATA: SENDER_ID TYPE REF TO IF_SENDER_BCS.
    *-- To Create recepient address
    DATA: RECIPIENT TYPE REF TO IF_RECIPIENT_BCS.
    *-- To Handle Exceptions
    DATA: BCS_EXCEPTION TYPE REF TO CX_BCS.
    *-- To check if the mail is sent to all recepients
    DATA: SENT_TO_ALL TYPE OS_BOOLEAN.
    DATA: CONLENGTHS TYPE SO_OBJ_LEN . "To calculate length of the HTML file
                  V A R I A B L E S                                      *
    DATA: REPORT TYPE PROGRAMM,    "Report name
          SENDER TYPE AD_SMTPADR,  "Sender Address
          SUBJECT TYPE SO_OBJ_DES. "Subject
    DATA: BCS_MESSAGE TYPE STRING ."String to store exceptions
    DATA: V_KUNAG TYPE KUNAG.      "Payer Id
    DATA: V_MAIL TYPE AD_SMTPADR,  "Mail Address
          V_DATE TYPE ZZBCDATE.    "To Validate Entered Date
                 S E L C T I O N - S C R E E N                           *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_ZZBCDA FOR VBRK-ZZBCDAT. "Billing Complete Date
    PARAMETERS:     P_MAILFT TYPE AD_SMTPADR,  "Mail id
                    P_MAILSC TYPE AD_SMTPADR.  "Mail id
    SELECTION-SCREEN END OF BLOCK B1.
                      At Selection Screen                                *
    AT SELECTION-SCREEN.
    *-- Validate the dates entered
      SELECT ZZBCDAT UP TO 1 ROWS
              FROM VBRK
              INTO V_DATE
              WHERE ZZBCDAT IN S_ZZBCDA.
      ENDSELECT.
      IF SY-SUBRC <> 0.
        MESSAGE E002 WITH 'Dates Not Found In The Given Range'(002).
      ENDIF.
                 S T A R T - O F - S E L E C T I O N                     *
      CONCATENATE SY-UNAME '@YAHOO.COM'(003) INTO SENDER.
    *-- Populating the Subject Line
      MOVE 'Invoice Due Date Details'(004) TO SUBJECT.
    *-- Selecting the Payer Details Based on Input Dates
      SELECT KUNAG
              FROM VBRK
              INTO TABLE IT_VBRK
                   WHERE ZZBCDAT IN S_ZZBCDA.
    *-- Selecting the Address Number from Customer Master
      SELECT KUNNR
             NAME1
             ADRNR
              FROM KNA1
              INTO TABLE IT_KNA1
                   FOR ALL ENTRIES IN IT_VBRK
                   WHERE KUNNR = IT_VBRK-KUNAG.
    *-- Selecting the Mail Id's
      SELECT ADDRNUMBER
             SMTP_ADDR
              FROM ADR6
              INTO TABLE IT_ADDR
                   FOR ALL ENTRIES IN IT_KNA1
                   WHERE ADDRNUMBER = IT_KNA1-ADRNR.
    *-- Getting all the selected mail Id's
      RECEPIENTS = IT_ADDR[].
      MOVE (your first report name) TO REPORT.
      IF NOT RECEPIENTS[] IS INITIAL .
        LOOP AT IT_KNA1 INTO WA_KNA1.
          AT NEW KUNNR.
            READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_KNA1-KUNNR
                                                              BINARY SEARCH.
            REFRESH RECEPIENTS.
    *-- Populating the Recepients Mail Id's for the Particular Kunnr
            LOOP AT IT_ADDR INTO WA_ADDR WHERE ADDRNUMBER = WA_KNA1-ADRNR.
              IF NOT WA_ADDR IS INITIAL.
                TRANSLATE WA_ADDR-MAIL_ID TO UPPER CASE.
                APPEND WA_ADDR-MAIL_ID TO RECEPIENTS.
              ENDIF.
            ENDLOOP.
    *-- Appending the mail id's from the input fields when not initial
            IF NOT P_MAILFT IS INITIAL.
              TRANSLATE P_MAILFT TO UPPER CASE.
              APPEND P_MAILFT TO RECEPIENTS.
            ENDIF.
            IF NOT P_MAILSC IS INITIAL.
              TRANSLATE P_MAILSC TO UPPER CASE.
              APPEND P_MAILSC TO RECEPIENTS.
            ENDIF.
    *-- Sending the Kunnr while Submitting the Report
            V_KUNAG = WA_KNA1-KUNNR.
            TRANSLATE REPORT TO UPPER CASE .
    *--Submitting the Report Exporting the List to Memory
            SUBMIT (REPORT) WITH S_ZZBCDA IN S_ZZBCDA
                            WITH P_KUNAG = V_KUNAG
                             EXPORTING LIST TO MEMORY AND RETURN.
            CLEAR: LISTOBJECT , HTML .
            REFRESH : LISTOBJECT, HTML .
    *-- Calling the Fn Module to get the list from the Memory
            CALL FUNCTION 'LIST_FROM_MEMORY'
              TABLES
                LISTOBJECT = LISTOBJECT.
    *-- Calling Fn Module to get the List in HTML Format
            CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
              EXPORTING
                REPORT_NAME = REPORT
              TABLES
                HTML        = HTML
                LISTOBJECT  = LISTOBJECT.
    *-- Getting the Size of the Html Document
            DATA: V_LINES TYPE I.
            DESCRIBE TABLE HTML LINES V_LINES.
            CLEAR CONLENGTHS .
            CONLENGTHS = V_LINES * 255.
            TRY.
                CLEAR SEND_REQUEST .
                SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
                CLEAR DOCUMENT .
    *-- Creating the Document
                DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                I_TYPE = 'HTM'
                I_TEXT = HTML
                I_LENGTH = CONLENGTHS
                I_SUBJECT = SUBJECT ).
    *-- add document to send request
                CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
                CLEAR SENDER_ID .
    *-- Creating the internet address for the sender id.
          SENDER_ID = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( SENDER ).
                CALL METHOD SEND_REQUEST->SET_SENDER
                  EXPORTING
                    I_SENDER = SENDER_ID.
                CLEAR WA_REC .
    *-- Creating the Recepients address
                LOOP AT RECEPIENTS INTO WA_REC .
                  CLEAR RECIPIENT .
                  RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
                  WA_REC ).
    add recipient with its respective attributes to send request
                  CALL METHOD SEND_REQUEST->ADD_RECIPIENT
                    EXPORTING
                      I_RECIPIENT = RECIPIENT
                      I_EXPRESS   = 'X'.
                ENDLOOP .
                CALL METHOD SEND_REQUEST->SET_STATUS_ATTRIBUTES
                  EXPORTING
                    I_REQUESTED_STATUS = 'E'
                    I_STATUS_MAIL      = 'E'.
                CALL METHOD SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
    *-- Sending the Document
                CALL METHOD SEND_REQUEST->SEND(
                EXPORTING
                I_WITH_ERROR_SCREEN = 'X'
                RECEIVING
                RESULT = SENT_TO_ALL ).
                IF SENT_TO_ALL = 'X'.
    *-- Getting the details to display the Job Log
                  LOOP AT RECEPIENTS INTO V_MAIL.
                    WA_MSG-STR1 = V_MAIL.
                    WA_MSG-STR2 = WA_KNA1-KUNNR.
                    WA_MSG-STR3 = WA_KNA1-NAME1.
                    WA_MSG-STR4 = SY-DATUM.
                    WA_MSG-STR5 = SY-UZEIT.
                    APPEND WA_MSG TO IT_MSG.
                  ENDLOOP.
                ELSE.
                  APPEND 'Mail not sent'(005)  TO RETURN.
                ENDIF.
                COMMIT WORK.
              CATCH CX_BCS INTO BCS_EXCEPTION.
                BCS_MESSAGE = BCS_EXCEPTION->GET_TEXT( ).
                APPEND BCS_MESSAGE TO RETURN .
                EXIT.
            ENDTRY.
          ENDAT.
        ENDLOOP.
      ELSE .
        APPEND 'Specify email address for sending'(006) TO RETURN .
      ENDIF .
                     E N D - O F - S E L E C T I O N                     *
    END-OF-SELECTION.
    *-- Displaying the Job Log
      FORMAT COLOR 1 INTENSIFIED ON.
      WRITE:/        SY-ULINE(121),
                (40) 'Mail Sent to'(007),
                     SY-VLINE,
                (12) 'Payer Id'(008),
                     SY-VLINE,
                (35) 'Payer Name'(009),
                     SY-VLINE,
                (10) 'Sent Date'(010),
                     SY-VLINE,
                (10) 'Sent Time'(011),
                     SY-VLINE,
                     SY-ULINE(121).
      LOOP AT IT_MSG INTO WA_MSG.
        FORMAT COLOR 2 INTENSIFIED ON.
        WRITE:/         SY-ULINE(121),
                   (40) WA_MSG-STR1,
                        SY-VLINE,
                   (12) WA_MSG-STR2,
                        SY-VLINE,
                   (35) WA_MSG-STR3,
                        SY-VLINE,
                   (10) WA_MSG-STR4  DD/MM/YYYY,
                        SY-VLINE,
                   (10) WA_MSG-STR5  USING EDIT MASK '__:__:__',
                        SY-VLINE,
                        SY-ULINE(121).
      ENDLOOP.

  • HTML Formatting Auto Email messages

    We have a scenario, when we provide a status update to an SR. The activity description is sent out as an automatic email. Workflow is working fine issue is automatic email is in Text format instead of an HTML format. Reason why I need an HTML format is in the description there could be a link to a web page. This link appears as text instead of a Hyperlink.
    CRMOD Support states this as an enhancement - I was wondering if anyone has created any workarounds for this.
    Thanks

    I dont believe there is a workaround for this as the emails are sent as plain text email. This has been highlighted as a request from customers i asked them if EMOD could be used in workflow which would be great for both internal and external customers.

  • Sending attached pdf format via email

    Hi,
    i got one requirement. i have one program. When i execute the program it has to send the
    Employee1, Employee2,employee3 data to Manager1 email id via email. The employee1, employee2, employee3 data should be stored in one folder and send it via email. I can send it individually like employee1 data manager1,again employee2 data to manager1 and again employee3 data to manager1.
    But what i want is i have to store all these three pdf data  in one folder and send at one time.
    similarly i have manager2,manager3...under managers some employess are there?
    is it possible? if yes, could you please help me in this regard? Thanks in advance.

    HI,
    Please find below sample code..it may help you..but you need to do bit modification
    DATA : LS_DOCDATA LIKE SODOCCHGI1,
             LT_DOCDATA TYPE STANDARD TABLE OF SODOCCHGI1,        " Table for subject
             LS_CONTENTS_MSG LIKE SOLISTI1,
             LT_CONTENTS_MSG TYPE STANDARD TABLE OF SOLISTI1,     " table for attachement
             LS_PACKING_LIST LIKE SOPCKLSTI1,
             LT_PACKING_LIST TYPE STANDARD TABLE OF SOPCKLSTI1,   " Table for Document type and length
             LS_OBJECT_HEADER LIKE SOLISTI1,
             LT_OBJECT_HEADER TYPE STANDARD TABLE OF SOLISTI1,     " Table for Header
             LS_CONTENTS_TXT LIKE SOLISTI1,
             LT_CONTENTS_TXT TYPE STANDARD TABLE OF SOLISTI1,      " Table for mail contents
             LS_RECEIVERS LIKE SOMLRECI1,
             LT_RECEIVERS TYPE STANDARD TABLE OF SOMLRECI1,        " Table for receiver,
    Subject line
      LS_DOCDATA-OBJ_LANGU = sy-langu.
      LS_DOCDATA-OBJ_NAME = text-002.
      LS_DOCDATA-OBJ_DESCR = 'bunu'.
      LS_CONTENTS_MSG-LINE = 'BUNOO' .
      APPEND LS_CONTENTS_MSG TO LT_CONTENTS_MSG.
    LS_CONTENTS_TXT-LINE = text-009.
      APPEND LS_CONTENTS_TXT TO LT_CONTENTS_TXT.
      clear LS_CONTENTS_TXT.
    BREAK-POINT.
    Content structure
      LS_PACKING_LIST-TRANSF_BIN = space.
      LS_PACKING_LIST-HEAD_START = 1.
      LS_PACKING_LIST-HEAD_NUM = 0.
      LS_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE LT_CONTENTS_TXT LINES LS_PACKING_LIST-BODY_NUM .
      LS_PACKING_LIST-DOC_TYPE = 'RAW'.
      append LS_PACKING_LIST to Lt_PACKING_LIST.
    Create attachment notification
      LS_PACKING_LIST-TRANSF_BIN = 'X'.
      LS_PACKING_LIST-HEAD_START = 1.
      LS_PACKING_LIST-HEAD_NUM   = 1.
      LS_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE LT_CONTENTS_MSG LINES LS_PACKING_LIST-BODY_NUM.
      LS_PACKING_LIST-DOC_TYPE   =  'PDF'.
      LS_PACKING_LIST-OBJ_DESCR  =  'PDF ATTACHEMENT'.
      LS_PACKING_LIST-OBJ_NAME   =  'DEMO'.
      LS_PACKING_LIST-DOC_SIZE   =  LS_PACKING_LIST-BODY_NUM * 255.
      APPEND LS_PACKING_LIST TO Lt_PACKING_LIST.
      LS_RECEIVERS-RECEIVER = 'WRITE THE MAIL ID HERE'.
      LS_RECEIVERS-REC_TYPE = 'U'.
      APPEND LS_RECEIVERS TO LT_RECEIVERS.
      LS_RECEIVERS-RECEIVER = 'WRITE THE MAIL ID HERE' TO SEND IN CC FIELD'  .
      LS_RECEIVERS-REC_TYPE = 'U'.
      LS_RECEIVERS-COPY = 'X'.
      APPEND LS_RECEIVERS TO LT_RECEIVERS.
    Send mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA                    = LS_DOCDATA
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
        TABLES
          PACKING_LIST                     = Lt_PACKING_LIST
      OBJECT_HEADER                    =
       CONTENTS_BIN                     = LT_CONTENTS_MSG
         CONTENTS_TXT                     = LT_CONTENTS_TXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
          RECEIVERS                        = LT_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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Ansumesh

  • Payslip distribution (in pdf format) via email

    Dear All,
    Please help with the configuration steps to distribute payslip in PDF Format to their official email.Kindly suggest the steps to configure the same.
    Best Regards,

    Hi Bobby
    As soon as User execute payslip. The payslip will get generated and an email will be sent to respective employee in PDF format.
    How about Posting. Without Bank Transfer How can User send Payslip that will be the main question arises from User.  In cases of wrong entries or reversal posting how would you manage?
    The finance department should confirm that there is Bank Transfer Once there done with Bank Transfer  An email should be trigerred 

  • Report output as an attachment in.XLS format via email.

    Hi all,
    When i run my report in back ground, my alv report output is to be sent as an email attachment in excel (.XLS) format. The issue i am facing is that i have around 40 fields in the output and i need to create a Header line with the Field Description in the Excel file. I am using the FM 'SO_DOCUMENT_SEND_API1', and passing the  report output in to the table CONTENTS_BIN     LIKE     SOLISTI1 which is of Char 255. but my report output header is exceeding that length.
    Kindly suggest me on how to acheive this.
    Regards,
    Jose

    Hi Jose,
    As for your first question you may place cl_abap_char_utilities=>horizontal_tab between contetaned fields' values. It will place then a tab mark between each two fields, which will be considered by excel as new column.
    Using cl_abap_char_utilities=>newline is also correct. I will probably only result in one extra line at the end as after you append your last line to BIN table, also newline will be placed. cl_abap_char_utilities=>lf on the other hand should be placed in front of each line as this denotes Carriage Return so it simply means: "place the cursor at the beginning of each line just before writing this line".
    Regards
    Marcin

  • Sending content in an html page via email as body

    Hi
    I am really in need of a prompt help for sending a web page which contains some html content as an email body.
    I really have no clue about this.
    I have tried searching in google but could not find any thing in java.
    I have everything ready for sending an email, i.e. to, from and subject.
    The only thing i need is the content from an html.
    I can set the content type as text/html.
    I need some help on content Id and content.
    Any quick help is really appreciated.
    Thank you.

    I have tried searching in google but could not find
    any thing in java.You actually didn't. Go take a look:
    http://java.sun.com/developer/EJTechTips/2004/tt0426.html#1

  • Question: Sending a HTML-Link (via email) for updating data

    Hello,
    I have an simple application which is club member request form.
    Anyone who will get a member in our club can type in some personal data and after pressing the create button he will get a confirmation e-mail.
    Till here everything works fine.
    Now I will put an confirmation link (HTML) in the confirmation e-mail.
    The new member should click on this link and the link should update (and commit) a the column "confirm" in my new_member table depending on an ID.
    Now my problem:
    I have no idea how this link should look like.
    Thanks for help

    Generally, this kind of implementation goes deeper than just what the link looks like. In fact, what the link looks like depends entirely on how you've implemented the confirmation process in your database.
    Although I've never done this specifically, I have given considerable thought to how it would be implemented. I thought that I would have a specific table that would hold pending confirmations. This table would hold some kind identifying data as well as a unique ID that would identify the row, probably something that looked like a GUID.
    Given this table structure there would probably be a trigger or PL/SQL process that took the pending member information and moved it into the members table when the member clicked on a confirmation button on the confirmation page. Therefore, the link that is sent to the user would need to look something like this:
    http://[yourhost.domain:port]/pls/[your DAD]/f?p=&app_id.:[your confirmation page #]&session.::::[your page item name]:[the unique ID for the member]
    The page item name is the item you define on the confirmation page that will hold the confirmation ID and the unique Id comes out of the table for the specific membership you're confirming.
    Again, this is conceptual since I've not done this specifically, but it should give you a place to start.
    Earl

  • Email smartform in html format

    Hello all,
    I've been searching SDN for help with creating an email in html format via smartforms. Pavan Bayyapu's blog was really helpful and I've also used program SF_XSF_DEMO_MAIL as the basis for my program.  I followed their examples exactly but my emails always appear as a .MTL attachment, never as just the body of the email. 
    I tried removing the file name from lo_mime_helper->set_main_html and from lo_mime_helper->add_binary_part as suggested by some other folks but I haven't had any success.
    Has anyone solved this same issue?  Maximum points will be given to helpful suggestions. 
    Thank you.

    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/59/cd7da407d711d5b66f006094192fe3/content.htm">converting SF to html format</a>
    Here is the code to send the Smartform to mail as PDF attachment.
    *& Report ZTEST_PDF_MAIL
    REPORT ZTEST_PDF_MAIL.
    Internal Table declarations
    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 = 'ZTEST'
    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'
    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 <> 0.
    ENDIF.
    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.
    Attachment
    REFRESH: I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    CLEAR WA_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    Create Message Body Title and Description
    I_OBJTXT = 'test with pdf-Attachment!'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    READ TABLE I_OBJTXT INDEX V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    Main Text
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    Attachment (pdf-Attachment)
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    READ TABLE I_OBJBIN INDEX V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smart'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = '[email protected]'.
    I_RECLIST-REC_TYPE = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = '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 <> 0.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    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.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Unable to receive email in HTML format on BB Torch 9860 with BIS

    I recently purchased BB Torch 9860 with OS 7 and configured by personal and work email on BIS. I am receiving emails only in text format. In some emails with images that have hyperlink, I just see a link and images not displayed. All the images comes as an attachment in the email. My friend having another BB Torch is able to view emails as HTML. But he is with BES. 
    Is there any solution for my issue? I am not receiving any options in the email preference to enable HTML format for emails.
    Appreciate if anyone could help me with this.
    Regards,
    Midhun

    Hi Midhun,
    Welcome to the Community
    To help you with the issues you're having, on your Blackberry go to your mailbox, press menu, choose options, then Email Preferences and check the box for Enable HTML Email, Download Images Automatically and Confirm External Image Download. The screen may look like the screenshot below:
    For more information please check these links:
    Blackberry Tips and Tricks
    Blackberry 101
    Enjoy!
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • How to send HTML page via an email

    Hi..
    I wanna send HTML page with images via an email, it should not go as an attachment.
    Is there any Tool or Software available to send HTML Pages via email.
    i just wanna send my advertisement as a HTML page via email
    So plz. help me out

    Java Message Service (JMS) For more info u can visite http://java.sun.com/products/jms/tutorial/
    It is usefull only when u r using some Application servers like WebLogic, WebSpeher, or JBoss
    Bye

  • Capturing cursor output in HTML format

    Hi,
    I want to capture Cursor's output in html format.
    following is the current query which is giving me output as mentioned below it
    Query:-
    declare
    v_msgtext  varchar(4000);
    cursor c_query IS
    select emp_no,emp_name,salary
              from employees
              where dept_id = 100;
    begin
    for v_query in c_query LOOP
    v_msgtext = v_msgtext ||
                        'empno:'|| v_query.emp_no||','||
                        'emp_name:'||v_query.emp_name||'.'||
                        'emp_salary:'||'v_query.salary'||
                        char(13)||char(10);
    END LOOP;
    utl_mail.send(v_sender, v_recipient, NULL, NULL, v_subject, v_msgText, 'text/html; charset=windows-1250', NULL);
    end; 
    o/p:-
    empno: 123,emp_name:sagar,emp_salary:10,000
    empno: 124,emp_name:neeraj,emp_salary:20.000
    empno: 125,emp_name:ashish,emp_salary:18.000
    empno: 126,emp_name:ramesh,emp_salary:5.000
    empno: 127,emp_name:suresh,emp_salary:30.000
    I want to generate the output as HTML report in tabular format with the below columns
    (empno,emp_name,salary) and send this html file via email to user.
    Can anybody please suggest a solution ASAP.
    Thanks in advance.

    Hi ,
    Please follow the below link may it will be useful for you.It shows how to generate a HTML format output through the query.
    oracle - Within a PL/SQL procedure, wrap a query or refcursor in HTML table - Stack Overflow

Maybe you are looking for

  • SSIS package is taking more time on production server than test server

    Same SSIS package was taking 18 hours on production and was just taking 6-7 hours on test server. When I increased the frequency of the Tlog backup file then it dropped to 11 hours. But still the difference of 3-4 hours is there. I had doubt that pro

  • Server Authentication Error When Open a pdf

    Hi, we are working on LiveCycle ES2.5, and we have many pdf documents, some of these documents use a data connection to call (use)  a process deployed on the JBoss server using the SOAP url, after a restart to the server any user opens any pdf docume

  • Swing Layout for different screen resolution

    Hi All, I am developing an application which will always run in a FULL SCREEN mode. I intend to make it working on all screen sizes (resoultions) and on different OS and devices. Since I am new to Swing, could anyone of you suggest a good layout mana

  • How to get Graph's PlotArea Position & Size

    With Measurement Studio V6.0 it is possible to put annotation on Graph, in PlotArea coordinates. But to use these annotations correctly, I need to know the Graph's PlotArea position (relative to ClientRectangle) and the size. Hot to do that? Regards

  • PSE 4 reconnect missing files

    PSE 4 - I turned on my computer yesterday (Pentium 4, windows XP, 189 gb). and most of my 2500 photos were flagged as missing files. I was able to reconnect some of them, but often they were mismatched in the reconnect window with another photo that