Bold Static Text in Email Body.

dear sir,
i have an email option in my application ,
I need Some Static Text Bold In Body . i am using <b></b> But It's not Working .How Can I Bold Static Text.
DECLARE
l_id number;
to_add varchar2(1000):=:P1_TO;
from_add varchar2(1000);
l_body varchar2(4000):=:P1_DESCRIPTION;
l_sub varchar2(1000):=:P1_SUBJECT;
l_regd varchar(100);
I_isue_dte date;
BEGIN
select email_id into from_add from user_mas where user_id=:app_user;
select user_name into l_regd from user_mas where user_id=:app_user;
l_id:=APEX_MAIL.SEND(
        p_to        => to_add, -- change to your email address
        p_from      => from_add,
        p_body      => '<b>Issue Information</b>'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                             '<b>Issue Title</b>'||':'||l_sub||CHR(13)||chr(10)||
                              '<b>Issue Open Date</b>'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                       <b>'Most Recent Comment</b>'||':'||''||chr(13)||chr(10)||
                       l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'<b>Please do not reply to this email.If you wish to update the call.please login to the issue Management.</b>',
  P_subj      => I_case ||' Issue '||l_sub);
COMMIT;
apex_mail.push_queue(
P_SMTP_HOSTNAME => '102.111.0.9',
P_SMTP_PORTNO => 25);
commit;
END;How can i do this.
Vedant

I would build your email something like this:
DECLARE
l_id number;
to_add varchar2(1000);
from_add varchar2(1000);
l_body CLOB;
/* I would add an l_body_html and create the body of my Email message here and feed it to p_body_html so that
you can have a reply for folks with and without html browsers.
l_body_html CLOB;
/* You need to make sure if you have l_body and l_body_html that they are the same format */
l_sub varchar2(1000);
l_regd varchar(100);
I_isue_dte date;
l_description varchar2(4000);
BEGIN
l_description := :P1_DESCRIPTION;
to_add := :P1_TO;
l_sub := :P1_SUBJECT;
l_body := 'Please use an Email client that uses HTML to view this message';
select email_id into from_add from user_mas where user_id=:app_user;
select user_name into l_regd from user_mas where user_id=:app_user;
/* HTML EMAIL SETUP - HTML HEAD BODY */
l_body_html := '<html>';
l_body_html := l_body_html ||'<head>'||utl_tcp.crlf;
l_body_html := l_body_html ||'</head>'||utl_tcp.crlf;
l_body_html := l_body_html ||'<body>'||utl_tcp.crlf;
/* END HTML EMAIL SETUP - HTML HEAD BODY */
/* NOTE THAT l_body_html just keeps getting the lines added to it */
/* here is how I would setup your subject */
l_body_html := l_body_html || '<b>Issue Information</b>'||utl_tcp.crlf;
l_body_html := l_body_html || '<b>Issue Title</b>:'|| l_sub || utl_tcp.crlf;
l_body_html := l_body_html || '<b>Issue Open Date</b>:'|| I_isue_dte || utl_tcp.crlf;
l_body_html := l_body_html || '<b>Most Recent Comment</b>:'|| l_description || utl_tcp.crlf || utl_tcp.crlf;
l_body_html := l_body_html || 'Regards '|| l_regd || utl_tcp.crlf || utl_tcp.crlf;
l_body_html := l_body_html || '<b>Please do not reply to this email.If you wish to update the call.please login to the issue Management.</b>'|| utl_tcp.crlf;
l_id:=APEX_MAIL.SEND(
        p_to        => to_add, -- change to your email address
        p_from      => from_add,
          p_body      => l_body,
        p_body      => l_body_html,
        P_subj      => I_case ||' Issue '||l_sub);
COMMIT;
apex_mail.push_queue(
P_SMTP_HOSTNAME => '102.111.0.9',
P_SMTP_PORTNO => 25);
commit;
END;

Similar Messages

  • Sending email - problems with text in email body

    Hello all,
    for sending emails I use the FM from Thomas Jung (<a href="http:///people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface:///people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface).
    Everything works fine, except that the text I attach in documents-content_text doesn't appear as a normal text in the email body but within an .EXT-attachment. Should this be a TXT attachment?
    E.g. when I send the text 'Hello World' the email arrives with an attachment 'Hello World.EXT'.
    Did anyone have the same problem? What's wrong?
    Thanks for your help.
    Regards
    Joschi

    Try this it works fine for me,
    METHOD email_result_as_pdf.
        DATA: lo_document_bcs    TYPE REF TO cl_document_bcs VALUE IS INITIAL,
              lo_send_request    TYPE REF TO cl_bcs VALUE IS INITIAL,
              lo_sender          TYPE REF TO if_sender_bcs VALUE IS INITIAL,
              lo_recipient       TYPE REF TO if_recipient_bcs VALUE IS INITIAL,
              lo_cx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL,
              lo_cx_send_req_bcs TYPE REF TO cx_send_req_bcs VALUE IS INITIAL,
              lo_cx_address_bcs  TYPE REF TO cx_address_bcs VALUE IS INITIAL.
        DATA: li_message_body     TYPE bcsy_text VALUE IS INITIAL,
              li_att_content_text TYPE soli_tab,
              lw_att_content_text TYPE soli.
        DATA: lv_result         TYPE string,
              lv_send           TYPE adr6-smtp_addr
                                     VALUE '[email protected]',
              lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    * Create Object
        lo_send_request = cl_bcs=>create_persistent( ).
    * Add Contents to Mail Body
        APPEND 'Dear Sir,<BR>' TO li_message_body.
        APPEND ' ' TO li_message_body.
        APPEND 'Please find the Report contents enclosed.<BR>' TO li_message_body.
        APPEND ' ' TO li_message_body.
        APPEND 'Thank You,<BR>' TO li_message_body.
    * Create a Document
        TRY.
            CALL METHOD cl_document_bcs=>create_document
              EXPORTING
                i_type    = 'HTM'
                i_text    = li_message_body
                i_subject = 'New ALV Sample Report'
              RECEIVING
                result    = lo_document_bcs.
          CATCH cx_document_bcs INTO lo_cx_document_bcs.
            lo_cx_document_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Populate the data to the Document Table
        LOOP AT i_sbook INTO w_sbook.
          CONCATENATE
            w_sbook-carrid
            w_sbook-connid
            w_sbook-fldate
            w_sbook-bookid
            w_sbook-customid
            w_sbook-custtype
            w_sbook-smoker
            w_sbook-wunit
            w_sbook-invoice
            w_sbook-class
            w_sbook-forcurkey
            w_sbook-loccurkey
            w_sbook-order_date
            w_sbook-counter
            w_sbook-agencynum
            w_sbook-cancelled
            w_sbook-reserved
            w_sbook-passname
            w_sbook-passform
            w_sbook-passbirth
            INTO lw_att_content_text-line
            SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
          CONCATENATE cl_abap_char_utilities=>cr_lf lw_att_content_text-line
                      INTO lw_att_content_text-line.
          APPEND lw_att_content_text TO li_att_content_text.
        ENDLOOP.
    ** Add the attachment to the document
        TRY.
            CALL METHOD lo_document_bcs->add_attachment
              EXPORTING
                i_attachment_type    = 'RAW'
                i_attachment_subject = 'New ALV Sample Report'
                i_att_content_text   = li_att_content_text.
          CATCH cx_document_bcs INTO lo_cx_document_bcs.
            lo_cx_document_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Set the document to the Send Request
        TRY.
            CALL METHOD lo_send_request->set_document
              EXPORTING
                i_document = lo_document_bcs.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Create Sender
        TRY.
            CALL METHOD cl_cam_address_bcs=>create_internet_address
              EXPORTING
                i_address_string = lv_send
              RECEIVING
                result           = lo_sender.
          CATCH cx_address_bcs INTO lo_cx_address_bcs.
            lo_cx_address_bcs->if_message~get_text(
                          RECEIVING
                              result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Add Sender to Mail
        TRY.
            CALL METHOD lo_send_request->set_sender
              EXPORTING
                i_sender = lo_sender.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Create Receipient
        lv_send = '[email protected]'.
        TRY.
            CALL METHOD cl_cam_address_bcs=>create_internet_address
              EXPORTING
                i_address_string = lv_send
              RECEIVING
                result           = lo_recipient.
          CATCH cx_address_bcs INTO lo_cx_address_bcs.
            lo_cx_address_bcs->if_message~get_text(
                          RECEIVING
                              result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Add Receipient to Mail
        TRY.
            CALL METHOD lo_send_request->add_recipient
              EXPORTING
                i_recipient = lo_recipient
                i_express   = 'X'.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Set Send Immediately
        TRY.
            CALL METHOD lo_send_request->set_send_immediately
              EXPORTING
                i_send_immediately = 'X'.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Send Mail
        TRY.
            CALL METHOD lo_send_request->send
              EXPORTING
                i_with_error_screen = 'X'
              RECEIVING
                result              = lv_sent_to_all.
            COMMIT WORK.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Inform User
        IF lv_sent_to_all EQ 'X'.
          COMMIT WORK AND WAIT.
          MESSAGE 'Mail Sent Successfully' TYPE 'I'.
        ELSE.
          MESSAGE 'Error Sending Mail to External Id' TYPE 'E'.
        ENDIF.
      ENDMETHOD.                    "email_result_as_pdf
    Regards
    Kathirvel

  • How to send images and other colored text in email body

    Hi
    We are using SAP CRM 4.0 and we would like to send email to our customers using actions configured for activity. Our objective is to send Marketing Emails containing <u>Images and Color texts</u> in the BODY OF THE email and not as a PDF attachment.
    The only relevant provision we could see in SCOT is either Text or PDF. On using text , we are loosing all images and color. The PDF option works , but the email generated is a blank email with PDF document as attachment.
    We want the matter to be inserted in the body of the email and not as attachment.
    Please do let us know if any one has faced similar situation and is there a resolution.
    Thanks and Advance.
    Regards
    Sachi

    Are you pasting in the HTML code?
    You can't use the formats in the CRM editor to set bold text, etc.  You have to use the HTML code and have set the Form up as Internet mail
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/82/dbfd38ccd23942e10000000a114084/content.htm
    Here's the first screen setting for my test email:
    Form          Y_TRADE_SHOW_INVITATION        / Trade Show Invitation (Test)
                                                                                    Form Usage              1 Internet Mail (SMTP)                        
        Text Type               1 HTML                                        
        IBU Scenario                                                          
        Customer Scenario                                                                               
    Page Format             DINA4         Status    Created                                                                               
    Characters Per Inch     10.00                                         
        Lines Per Inch          6.00                                          
        Style                   SYSTEM SAP Smart Forms Default                                                                               
    Created By         MANECITO            Changed By         MANECITO   
         Date               01/16/2007          Date               05/22/2007 
         Time               09:49:12            Time               18:01:51   
    then, your email has to have the HTML tags
    A bare minimum is your email has to have the <HTML> tag at the top, but it's advisable to be sure you have a more complete setup like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .style1 {
         font-size: x-large;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style2 {
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; }
    -->
    </style>
    </head>
    <body>
    ENTER YOUR HTML MESSAGE HERE
    </body>
    </html>

  • UTL_SMTP writing to email body after writing to attachment doesn't work

    Read in contents of files and Write text to email body if size is < 10k , otherwise to an attachment. Problem is after writing to an attachment we can't get it to switch to write the next file contents to the message body.
    Example; we have 6 files in the table array. The first two files are less than 10k in size so the text from these files get written to the mail body. The third file size is 12k so the text gets written to an attachment. The 4th file is 2k but instead of being written to the email message body it gets appended to the previous attachment. All subsequent files of size < than 10k get appended to the attachment.

    Sounds like you've written some custom code and it has a bug in it. How about you post a SMALL (yet complete) example that can be run by anyone with an Oracle database (the same version as you, which you've not told us and should). From there you should get lots of help.
    To get your version
    select *
    from v$version;

  • EMAIL BODY SAME AS ATTACHMENT

    Hi All,
    Currently I am sending email with PDF attachement. I want to send the email body same as PDF attachement.
    Can give me any FM name to onvert SMARTFORM into HTML to paste in email body.
    Arun Prasad

    Thank you for reply Krishnan.
    But I believe some FM should be ther to convert SMart form to HTML content. I found SO_OBJECT_SEND FM for adding fixed text in email body which can use HTML format also.
    I need another FM to convert SMARTFORM to HTML,later I can use above mentioned FM for embedded in email body.
    Arun Prasad

  • Emails appear in bold text (subject and body)

    A few days after installing OS X Yosemite on my iMac, all of my Comcast emails appear in bold text (subject and body text). This makes it difficult to distinguish unread email from read email.  I view email directly through the Comcast website (NOT with Outlook or Mail). This issue happens in Firefox and Safari. My email looks normal on other devices. I am working with Comcast to try to resolve the issue, but since it started a few days after upgrading to Yosemite, I thought I'd check here too.

    Try to set the Boolean pref <b>gfx.font_rendering.directwrite.use_gdi_table_loading</b> to <i>false</i> on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"

  • Can I have both static text and the output of an array in the body of an email?

    I have been scouring forums for something on this for a while now and have not found a whole lot. I'm trying to send a group of emails out to server owners in our company for a cleanup/consolidation project. I have a working script and of course now my boss
    wants it changed. I have the script set up to find all the servers a person owns and put it into a CSV file. Then it attaches it to an email with instructions on how to get everything updated. Now my boss does not want the list in an attachment but right in
    the body of the email. I'm pretty sure this is something Powershell can do, but I'm clueless on where to begin let alone how that would work.
    Here is my current script minus the confidential stuff :) I just need to know where to start since it can't be in html format. I'd probably know if I knew powershell a little better, but well I've only been working with it for a few months now.
    #Get SQL Database objects and places them into array $Sqldb
    $Sqldb = New-Object System.Data.DataSet "myDataSet"
    $sqlConn = New-Object System.Data.SqlClient.SqlConnection("Data Source=<SQL Server>;Initial Catalog=ServerBook;Integrated Security=True")
    $adapter = New-Object System.Data.SqlClient.SqlDataAdapter("SELECT ServerName,Owner,SupportContact,SupportExternal,ServerDescription FROM v_ServerBook_BasicInfo",
    $sqlConn)
    $adapter.Fill($Sqldb)
    #reorganizes $Sqldb by property owner
    $Sqldb = $Sqldb.Tables[0] | Sort-Object -Property Owner
    #stores list of unique owners and eliminates duplicates
    $owners = ($Sqldb.owner | Get-Unique)
    #eliminates null values from the list of owners
    $owners = $owners | where{$_ -ne "" -and $_ -ne $null -and $_ -ne [dbnull]::value}
    foreach($owner in $owners){
    #Get the servers for the current owner
    $servers = $Sqldb | where{$_.owner -eq $owner}
    #CSV output filename ($owner.csv)
    $newfile = "\\file\path\$owner.csv"
    #Export the servers to the filename
    $servers | select ServerName, Owner, SupportContact, SupportExternal, ServerDescription | Export-Csv -path $newfile -NoTypeInformation
    #copies the server owners name to $ownername variable
    $ownerName = $owner
    #switches the format of the ownername variable to lastname,firstname
    $Username = "$($Owner.Split(" ")[1]), $($Owner.Split(" ")[0])"
    #gets email address for owner from AD
    $EmailAddress = Get-ADuser -Filter "Name -eq '$Username'" -properties emailaddress -server ads.domain.com | select-object emailaddress
    #splits the $emailAddress vaiable to help eliminate extra text original text looks like @{emailaddress = [email protected]}
    $Emailaddress = $Emailaddress -split '[=}]' ,0
    #removes extra text at the beginning of the variable leaving just [email protected]
    $Emailaddress = $Emailaddress.TrimStart("@{emailaddress")
    #stores the body of the email into a variable
    $message = "Hello,
    Blah Blah Blahbity Blah
    Thank You,
    <Signature Block>"
    #Sets the from email address
    $emailFrom = "[email protected]"
    #Sets the email subject
    $subject="Test Email"
    #sends the email with attachement for the current owner
    Send-MailMessage -To "$EmailAddress" -Subject $subject -Body $message -SmtpServer "<smtp.domain.com>" -From $emailFrom -Attachments $newfile -DeliveryNotificationOption OnSuccess

    So I can just put my output variable into the email body variable.... since it's a table with headers should I do anything special for formatting the table?
    My output now looks like :
    ServerName
    Owner
    SupportContact
    SupportExternal
    ServerDescription
    Server1
    Me
    Me
    TrendMicro OfficeScan 10.5
    Server2
    Me
    Me
    TrendMicro Deep Security Test
    Server3
    Me
    Me
    Test Server
    Server4
    Me
    Me
    Application Server
    Well it's a little garbled there but you get the idea

  • Bold letters in email body.

    Hi all.
       I need to have first line in the email body with bold letters. I am usnig the FM  SO_NEW_DOCUMENT_ATT_SEND_API1. Pls let me know how to do it.
    Thanks.
    sami.

    Hi,
    to send mails use this:
    FORM docu_send_email USING pv_otfdata TYPE tsfotf
    pv_emailid TYPE any
    pv_formname TYPE any.
    DATA: lv_filesize TYPE i,
    lv_buffer TYPE string,
    lv_attachment TYPE i,
    lv_testo TYPE i.
    DATA: li_pdfdata TYPE STANDARD TABLE OF tline,
    li_mess_att TYPE STANDARD TABLE OF solisti1,
    li_mtab_pdf TYPE STANDARD TABLE OF tline,
    li_objpack TYPE STANDARD TABLE OF sopcklsti1,
    li_objtxt TYPE STANDARD TABLE OF solisti1,
    li_objbin TYPE STANDARD TABLE OF solisti1,
    li_reclist TYPE STANDARD TABLE OF somlreci1,
    li_objhead TYPE soli_tab.
    DATA: lwa_pdfdata TYPE tline,
    lwa_objpack TYPE sopcklsti1,
    lwa_mess_att TYPE solisti1,
    lwa_objtxt TYPE solisti1,
    lwa_objbin TYPE solisti1,
    lwa_reclist TYPE somlreci1,
    lwa_doc_chng TYPE sodocchgi1.
    CONSTANTS: lc_u TYPE char1 VALUE 'U',
    lc_0 TYPE char1 VALUE '0',
    lc_1 TYPE char1 VALUE '1',
    lc_pdf TYPE char3 VALUE 'PDF',
    lc_raw TYPE char3 VALUE 'RAW',
    lc_ordform TYPE char15 VALUE 'ZORDCONFIRM_01',
    lc_attachment TYPE char10 VALUE 'ATTACHMENT'.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = lc_pdf
    max_linewidth = 132
    IMPORTING
    bin_filesize = lv_filesize
    TABLES
    otf = pv_otfdata
    lines = li_pdfdata
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 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.
    LOOP AT li_pdfdata INTO lwa_pdfdata.
    TRANSLATE lwa_pdfdata USING ' ~'.
    CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
    CLEAR lwa_pdfdata.
    ENDLOOP.
    TRANSLATE lv_buffer USING '~ '.
    DO.
    lwa_mess_att = lv_buffer.
    APPEND lwa_mess_att TO li_mess_att.
    CLEAR lwa_mess_att.
    SHIFT lv_buffer LEFT BY 255 PLACES.
    IF lv_buffer IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Object with PDF.
    REFRESH li_objbin.
    li_objbin] = li_mess_att[.
    DESCRIBE TABLE li_objbin LINES lv_attachment.
    Object with main text of the mail.
    lwa_objtxt = space.
    APPEND lwa_objtxt TO li_objtxt.
    CLEAR lwa_objtxt.
    DESCRIBE TABLE li_objtxt LINES lv_testo.
    Create the document which is to be sent
    lwa_doc_chng-obj_name = text-008.
    lwa_doc_chng-obj_descr = text-008.
    lwa_doc_chng-sensitivty = lc_0.
    lwa_doc_chng-obj_prio = lc_1.
    lwa_doc_chng-doc_size = lv_testo * 225.
    Pack to main body.
    CLEAR lwa_objpack-transf_bin.
    header
    lwa_objpack-head_start = 1.
    The document needs no header (head_num = 0)
    lwa_objpack-head_num = 0.
    body
    lwa_objpack-body_start = 1.
    lwa_objpack-body_num = lv_testo.
    lwa_objpack-doc_type = lc_raw.
    APPEND lwa_objpack TO li_objpack.
    CLEAR lwa_objpack.
    Create the attachment.
    Fill the fields of the packing_list for the attachment:
    lwa_objpack-transf_bin = gc_x .
    header
    lwa_objpack-head_start = 1.
    lwa_objpack-head_num = 1.
    body
    lwa_objpack-body_start = 1.
    lwa_objpack-body_num = lv_attachment.
    lwa_objpack-doc_type = lc_pdf.
    lwa_objpack-obj_name = lc_attachment.
    lwa_objpack-obj_descr = text-008.
    lwa_objpack-doc_size = lv_attachment * 255.
    APPEND lwa_objpack TO li_objpack.
    CLEAR lwa_objpack.
    lwa_reclist-receiver = pv_emailid.
    lwa_reclist-rec_type = lc_u.
    lwa_reclist-notif_del = gc_x.
    lwa_reclist-notif_ndel = gc_x.
    APPEND lwa_reclist TO li_reclist.
    IF li_reclist IS NOT INITIAL.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = gc_x
    TABLES
    packing_list = li_objpack
    object_header = li_objhead
    contents_bin = li_objbin
    contents_txt = li_objtxt
    receivers = li_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    ENDFORM. " DOCU_SEND_EMAIL

  • Get exData body of a static text

    Hi experts,
    I've got a static text as follow (xml source)
            <draw minH="20mm" name="Text" w="190mm" x="0.6477mm" y="201.971mm">
                <ui>
                   <textEdit>
                      <margin/>
                   </textEdit>
                </ui>
                <value>
                   <exData contentType="text/html">
                      <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.5.6290.0"><p style="text-align:justify;font-family:Arial;text-decoration:none">Il sottoscritto<span style="xfa-spacerun:yes"> </span</body>
                   </exData>
                </value>
             </draw>
    I need to change the body formatting dynamically.
    I've tried with exData.saveXML() function but this returns
    <?xml version="1.0" encoding="UTF-8"?>
    <exData contentType="text/html"/>
    how can I get the body xml?
    Best regards,
    Dariush

    I used this:
      Text1.value.exData.saveXML("pretty")
    It returned this:
    <?xml version="1.0" encoding="UTF-8"?>
    <exData contentType="text/html" xmlns="http://www.xfa.org/schema/xfa-template/3.5/">
       <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-decoration:none;letter-spacing:0in">This is a<span style="xfa-spacerun:yes"> </span><span style="font-weight:bold;text-decoration:underline">test<span style="xfa-spacerun:yes"> </span></span></p></body>
    </exData>
    The body tag has the formatting and the value that is in teh text object.
    Are you not seeing the somethig similar?
    Paul

  • How do I add an email body text for remittance advices / payment advices?

    Hello,
    I am trying to send an email body text with the pdf remittance advice to my vendors.
    Background:
    We are running automatic payments to vendors via transaction F110. We have configured the pay run to produce remittance advices for vendor payments. Finally we activated the BTE 00002040, through transaction FIBF, to use a custom copy of the function module SAMPLE_PROCESS_00002040.
    Our payment run sends emails with pdf-file attachments to our vendors correctly.
    <b>The Issue:</b>
    I can not find a way to add text to the body of the email with the attached remittance advice.
    Has anyone advise on how to populate the email body with text?
    Thank you and best regards
    Karsten Arold

    Hello Subhashree,
    I have not implemented the functionality, but I found rerference to SAP Note 1033893 in another forum post.
    Email text to Payment Advice in BTE2040
    Allan

  • How Do highlight text in the body of an email message in Mac Mail?

    Can anyone tell if IF and HOW I can highlight text in the body of an email message using Mac Mail (in Yosemite).  I do NOT mean MARKUP an attachment.  I want to highlight a word or phrase in the body of my email message.  I know I can change the font color, but can't seem to add a highlight!  Thanks!

    Hi,
    is is possible, - link is below. Works on Yosemite, btw.
    http://www.mihalick.us/how-to-highlight-text-in-yellow-using-apple-mail/

  • BI Publisher 11g - not able to get TEXT output in the email body

    I am trying to send TEXT report output generated by ETEXT templates in the email body by setting up the Bursting defintion in the Data Model using the following query. It is always sending it as an attachment though PARAMETER6 is set as false. Please advise on how to make it work?
    It seems PARAMETER6 does not have any effect on how it works.
    select
    customer_id KEY,
    'Etext_Template' TEMPLATE
    'ETEXT' TEMPLATE_FORMAT,
    'en-US' LOCALE,
    'TEXT' OUTPUT_FORMAT,
    'EMAIL' DEL_CHANNEL,
    null TIMEZONE,
    null CLAENDAR,
    customer_name || '_status' OUTPUT_NAME,
    'true' SAVE_OUTPUT,
    '[email protected]' PARAMETER1,
    null PARAMETER2,
    '[email protected]' PARAMETER3,
    'Status Report for ' || customer_name PARAMETER4,
    null PARAMETER5,
    'false' PARAMETER6,
    null PARAMETER7,
    null PARAMETER8
    from dpmi_customers_v
    The Oracle BI Publisher version is 11.1.1.5.0.
    Thanks,
    Suja

    Control click or Right Click on the attachment in the body of the email and select 'View as icon'.
    There is a (paid for) mail plugin called Attachment Tamer which helps Mail do a much better of handling attachments - giving much more control over how they are viewed/arranged/received. It's available from http://lokiware.info/Attachment-Tamer
    (Usual caveat, I've no connection with Lokiware, just happy with their product).

  • Purchase Order External Send with email body text

    hi guru,
    i saw lot of threads but i didn't get coreect answer
    i did below process
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    mail subject is going ,but mail text is not coming.
    some people  suggest this sap note
    Note 786847 - E-mail purchase order w/ e-mail text and several attachments
    i did not get this note.
    give the solution for email body text ,i read some thread,it will solve through abap development .
    please  give solution
    regards
    vijay

    Hi
    1. GO to tcode SCOT.
    2. Double click on SMTP
    3. Click on the set button next to internet
    4. In this screen for SAP Script/ Forms select TXT.
    Regards
    Girish
    Edited by: Girish Bettaiah on Aug 8, 2011 3:11 PM

  • Text message to email sent as attachment instead of in email body

    I used to have this problem before with my iPhone 4, but it seemed to go away. Now, with the lates OS update it's back again. When I send a text message to my wife's Gmail it arrives as a text file attachment to the email instead of just normal text in the email body.
    I use Verizon, and the source of the email is @vzwpix.com. I know that there is also @vtext.com, but in the past it hasn't mattered which one was used.
    Any ideas?

    If you try reading other posts here about attachments and such you may get a hint. It sounds like all email programs would work fine if people just sent plain text. Problems arise when we use RTF (rich text format) and HTML. Possibly the original email you received had formatted text. My guess is that if you forced that text into plain text then it would be readable by all. This is the reason that only some people have trouble with the forwarded text. It depends on their email client or even on settings of that client.
    Good luck.

  • Want to send a email with images and text in the body of email in iOS

    In iOS, we have written a code to send an email,  with embedded images and text in the body of the email ( not attachment) using mail composer. It works well with iOS devices like iPhone and iPad, but does not work in window based OS. Can anybody help. The code is

    Thanks James !, do you have an idea how to  find the window resource which I belive will be included in our appllication pack.
    In above  I have missed to copy the code,below is the code. This might help you to help me.
    NSMutableString *imgContent = [[[NSMutableString alloc] initWithString:@"<html><body>"] retain];
    UIImage *imageData = [UIImage imageNamed:@"Midhun.png"];
    NSData *imageDataInBase64 = [NSData dataWithData:UIImagePNGRepresentation(imageData)];
    NSString *base64String = [imageDataInBase64 base64EncodedString];
    [imgContent appendString:[NSString stringWithFormat:@"<p><b><img src='data:image/png;base64,%@'></b></p>",base64String]];
    [imgContent appendString:@"</body></html>"];
    MFMailComposeViewController *emailWin = [[MFMailComposeViewController alloc] init];
    [emailWin setMessageBody:imgContent isHTML:YES];

Maybe you are looking for

  • EJB 3.0 NullPointerException

    Hi, I'm a new to JavaEE, especially to ejb3. I'm trying to develop a client that call a method against a facade method. This's the "session bean for entity class" (automatically written by NeatBeans) equipped to Remote Interface. package ejb; import

  • Can I define an RFC with multiple desitinations?

    I am working on intergration between SAP and JAVA, I am have to call RFC to get the pricing of a each lineitem from Java instead of getting from SAP Condition types while creating as Sales order. I have defined one RFC to connect to Java server progr

  • IPhoto or iMovie for imports

    I import my movies off my Canon sx200is via a SDHC reader. When I plug the reader in it opens iPhoto and tries to import photos and movies alike. This works, but i wondered if there is an advantage to importing the movies in iMovie instead, like if I

  • Word format

    hi when i save as word 2007 file as pdf contain images and text that has some formating but when i open in illustrator this open in same as in word ok, but when i click on text text breaks in words is there any script or any way to combine text

  • Import Oracle 8i to 9i

    Hi, Can I import oracle database 8.1.5 to oracle 9.2.0? will there be any impact? if I can,how should I do? what are the pro's and con's if I import the db?