Change email subject and body

Hi ,
For one of my requirement, the email subject and body has to be changed. For order confirmation and quotation, the standard behaviour of having the smartform name as the subject name should be changed and ther ehas to be a dynamic subject name. Similarly the email content should also be changed. Is this possible? Can anyone suggest me the steps?
Thanks.

Hi,
Could you please tell what method are you using to create emails?
If it is using workflows then you can change the subject and mail body dynamically using parameters and expressions.
If you are sending mail using an FM call, then also you can create dynamic subject and mail body.
Please provide the details so that an appropriate solution could be provided.
Regards,
Saumya

Similar Messages

  • Change mail subject and body

    Hi all,
    I configured a 'printer' in SPAD that is used to send email with pdf attachments with the smartforms / sapscritps that I developed.
    Is there a way to change email subject and body instead of standard text "The Mail Attachment Contains the Print File Created by User" bla bla bla?
    This is critical to me.
    Thanks in advance!
    Regards,
    André

    If you are already able to send the pdf attachment through mail using Function Modles 'CONVERT_OTF_2_PDF' &
    SO_NEW_DOCUMENT_ATT_SEND_API1 and the problem is with subject and Attachment name only then
    in the SO_NEW_DOCUMENT_ATT_SEND_API1 function Module
    For Subject
      EXPORTING
      document_data = docdata
    For Attachment Name
      TABLES
      packing_list = objpack
    Declarations for the above two are
    DATA:
      objpack LIKE sopcklsti1 OCCURS 1  WITH HEADER LINE,
      docdata LIKE sodocchgi1.
    and the values you need to pass are
      objpack-obj_descr = 'Invoice'. "Attachment name
      docdata-obj_descr = 'Mexico Direct Invoice'. "Subject of the mail
    Thanks,
    Phani.

  • I have an email account on qou but all the incoming emails subject and body appear as question marks, why???

    I have an email account on QOU (al-quds Open University) but all the incoming emails subject and body appear as question marks, why???

    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"

  • Change mail subject and body text

    Hi all,
    i activated access method M in tr. SPAD and via this method i'm sending various reports in PDF to external e-mails. But when recepitiens recive e-mail i have subject of e-mail composed of SYSTEM ID and SPOOL NUMBER (e.g. R3P-12345) and i also have defaulted mail body text :
    The Mail Attachment Contains the Print File Created by User XXXXX , with Number xxxx from SAP System R3P .
    To Print the Data, Open the Mail Attachment with a Suitable Program and Print the Document.
    How can i change mail subject and body text?
    Regards,
    PS*

    For the output type Maintian the Mail body and subject.
    You can do this at NACE==>Output Type ==> Mail title and texts
    rgds,
    TM
    See the link
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/UtilityCode.html
    Message was edited by: Thomas Mann

  • 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"

  • Using variables to populate Email Address, Subject, and Body

    I am trying to setup a for to alert contractor when their service calls are completed. I would like to use the email address, Subject, and body from fields on the PDF form.
    On the Button I am using the following Click / Javascript
    var myDoc = event.target;
    var rEmail = CuEmail.rawValue;
    var rSubject = EmailSubject.rawValue;
    var rBody = DescribeProblem.rawValue;
    myDoc.mailDoc(
    false,
    rEmail, "", "",
    rSubject, "", "",
    rBody, "", "",
    Nothing happens when I click the button with this code. But, if I drop the last comma from:
    rBody, "", "",
    It will send the email with the correct email address and it will include the subject like I want it. It will just not populate the body section of the email.
    Any help would be greatly appreciated.

    I had a similar requirement and but took a different approach for a request/reply model. There are two fields on the form that the request fills in that directs how the submit button will work for the responder...
    RequestFileType (This can be PDF, XML, or XDP)
    RequestDestination ( This the URL, FTP site or email)
    Here is the script that I run on the Presubmit event for the form when it initializes.
    MaterialCompositionInformationDistribution.RoHSpage2.RoHSDirective.SubmitMCDFormButton.#ev ent.#submit.target = MaterialCompositionInformationDistribution.RoHSpage1.RequestInformation.RequestDestinatio n.rawValue;
    MaterialCompositionInformationDistribution.RoHSpage2.RoHSDirective.SubmitMCDFormButton.#ev ent.#submit.format = MaterialCompositionInformationDistribution.RoHSpage1.RequestInformation.RequestFileType.r awValue;
    What it does is poke values into the submit button basically. To send to an email address. you enter mailto:[email protected] or to post to a servlet you would enter http://www.domain.com/foobarservlet

  • Mailbox Quota Message, Sender, Subject and Body blank?

    Running Leopard Server, I have mail quotas enabled. System sends the email to the user but the email message From Address, Subject, and Body are blank. I have them set in Server Admin but they don't show in the message. Is there a setup file that I can edit in terminal to correct?

    Haven't checked yet on Leopard, but I would think the files are:
    /private/etc/mail/quota_warning.txt
    /private/etc/mail/quota_exceeded.txt

  • Setting Mail Subject and Body

    Hi,
    I have configured sending a mail with PDF attachment for Invoices in NACE. the program is RLB_INVOICE The mail goes fine with the PDF attachment to external mail address.
    Now I need put subject and Body for the email.
    There are 2 issues now.
    1. In transaction NACE i am using "Mail title and texts" node when i fill the Document title, the same document title appears for the e-mail subject as well as the name of the attachment. But i need different names for the subject and attachment and the invoice number must be present in the subject.
    2. Under the "Text" tab when i maintain some texts, this doesn't appear anywhere in the mail.
    How do i maintain Subject and Body for the e-mail.
    Regards
    Rajvansh

    Hi
    Keep break point at SO_OBJECT_SEND.
    In the first screen
    VF01 / VF02  ->
    Set the Output type not to process immediately, use custom own transaction.
    Save and come out of transaction.
    And again
    VF01/ VF02 ->
    Issue Output type select the Output with medium 5.
    and click on the OK button.
    It should stop.
    To pass value from driver program to Enhancement point.
    I used FIELD SYMBOLS.
    Since i am offline, i do not have exact syntax.
    It will be something like this
    FIELD SYMBOLS : <OUTPUTTYPE> type any.
    ASSIGN '( PROGRAMNAME(FIELD NAME)) TO <OUTPUTTYPE>
    IF <OUTPUTTYPE> IS ASSIGNED.
    ENDIF.
    Or
    If it is custom driver program, you can use memory ID's also
    Regards
    MD

  • Mailto Subject and Body

    I've been working on an app that involves sending an email. I usually have no problem sending an email with just the recipient information, but this time, I am trying to add a preconfigured subject and body. I have looked at a few example online and used them, but I still can't seem to get the function to work. Here is the example I have been using:
    NSString *url = [NSString stringWithString: @"mailto:[email protected]?cc=[email protected]&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20here!"];
    [[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
    The only time a preconfigured subject and body do work properly is when they are just one word.
    Any help would be appreciated.

    Use MFMailComposeViewController instead.

  • How translate Subject and body for a e-mail task to different languages ?

    We have several tasks with their corresponding subject and body text in a workflow.
    We would like to know if there is an easy way to translate all of them to several languages ?
    Thanks in advance.
    Juan.

    Hi Juan,
    The translation tools don't translate the subjects. I've found the best way to save yourself headaches is to log on in each target language and edit each task. Slightly longer but more reliable, simple and problem-free.
    Cheers,
    Mike

  • NECE print type Email Text and Body not comming in Email

    Hi,
    We have maintain Email text and Body in NECE for email body.
    But while , we are checking in email , Invoice is coming as attachement, email body is not apprearing in email .
    what to do?
    Regadrs,
    Waqkas

    Hi Silvia,
    I have maintained text for email body in specific output type for Invoice
    In NACE transaction , in V3 Billing , I have Output type RD0M, in that I have maintained
    email Body.
    But on the time of generating the Invoice email for Vendor , only Invoice is going in email as attachement,
    Email Body which I have maintained in NACE is not coming .
    Any Suggestion ?
    Re,
    Waqkas

  • Email submit button concatenate subject and body

    Hello Expert,
    I'm trying to modify what the body of the email will look like once the user has pressed an email submit button. In Livecycle designer, I clicked on the button and viewed java script code
    this.resolveNode("#event.#submit").target = "mailto:"+$record.XXXXXX.MAIL_ID.value+"?subject ="+" Subject line "+"&body="+"Body of the mail";
    Whenever i click the button its conacatenate the subject line with -- " Subject line &body body of the mail ".
    My requirement is to change the body of the mail. Can anyone help me on this issue.

    Hi Abdul,
    Try this. Create a regular button and in the click event put this script.
    var mail;
    var add = mailAddress.rawValue; // the to mail address you want.
    var msg = "Sample message"; // This is the body of the mail Customize it as per need by fetching value from different fields
    var sub = "Sample Subject"; // This is the subject of the mail.
    event.target.mailDoc({
              bUI: true,
              cTo: add,
              cCc: '',
              cBcc: '',
              cSubject: sub,
              cMsg: msg
    Thanks,
    Bibhu.

  • Alerts from BPM Email Subject and From address should be changed.

    Hi All,
    I'm raising an alert from BPM by using Container operation  and Control steps.
    The below details are appearing in the Email. Is there any way to change these standard steps... ?
    From:     WF-BATCH at K.local
    To:         SAPSupport at k.com
    Subject:  Process 000000021589
    Alert ID:   ##00010##
    I want to change the
    - Subject name with my own subject line.
    - From address should be changed to it.helpdesk at k.com instead of WF-BATCH at k.com
    - I checked in some of the threads, looks like there is limitation in terms of characters in the Email body(127 characters)? Is there anything I can do to extend the email body?
    Kindly suggest me.
    Thanks
    Deepthi

    Hi Baskar,
    // You can pretty much change the subject title and recipient information easily. Click on fixed recipients to modify mail address.
    Recipients list is fine. I can change. How about the Sender Email address?
    Ex:  WF-BATCH.. Since the errors are generated from BPM, the sender userid will be always WF-BATCH.
    I want to change this user id into my custom user id.. is it possible?
    2. Also I enabled Dynamic Text in alert category which is used to get the dynamic text from mapping.. Hence i cannot use Short and Long texts tab in Alert Category to generate the subject line.
    Hence Subject line is coming with process ID, looks like I cannot change?
    Thanks

  • Yahoo emails display sender, subject and body in email listing

    The past couple of days my yahoo mail displays subject and as much of the body that space allows. The folders are all messed up. The whole screen is a mess. Nothing like it used to be. It works fine in IE.

    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Command+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow pages to choose their own fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"

  • Change Email subject line for PDF output through smartforms

    Dear all,
    Currently i am working in Client ECC6.and we are useing The Smartform for Sending PDF document to the Customer.
    Since recently email was setup so these invoices can be mailed directly to the customers, but we face the problem that when invoices are sent via email, the subject is like this.
    From: Ramesh Babu mailto:ramesh_babu@abc
    Sent: Wednesday, August 27, 2008 10:40 AM
    To: Babu, Ramesh
    Subject: New Invoice (mail/prnt).
    Now the customer Requirement is that ,they dont want to disclose the Email address of the sender.
    so they want to change the Form line and one hard codeed line always send to the customer like Ex below.
    From: "Help Me Please'' .
    This will aplicable for all sender ,if he send it by foreground or background as well.
    so could you please sugest me how can i do that coding,or is there a user-exit to overrule the Standard SAP behaviour.
    My Print program name: ZLB_BIL_INVOICE .
    Regards,
    Moni

    Hi,
    refer this,
    you can change the subject line.
    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

Maybe you are looking for

  • Is there a MagSafe 2 compatible portable external power source for the retina display MacBook Pro?

    I'm using a retina display MacBook Pro with the MagSafe 2 connection.   I would like to have a portable external power source to extend the use of my laptop on long field trips where I am away from power sources. Swapping batteries is not an option f

  • How much to repair

    I accidentally dropped my macbook pro. It won't start now. how much does it take me to get it repaired in Apple Store

  • External drive is suddenly read-only, yet is formatted for Mac

    I've had a 1TB external hard drive for the last year and never had a problem with it until now. Suddenly, it is showing as read-only, however, it's formatted for Mac. How am I able to fix this? Do I have to re-format it?

  • Why are all the photo titles in Photobooth the same?

    This question concerns photobooth and using photos taken in iPhoto. The problem is this: I took a bunch of photos with photobooth, then imported them into iPhoto. I then attempted to move those photos into a seperate folder on my desktop, but I could

  • BOOLEAN IN FORTE MAPPING TO MS C++

    I need to map some boolean data types from Tool to C++. Has anyone ever done this before. If so, how did you establish a one to one correspondence bewtween the boolean types in Forte and the boolean types in C++. I am using Microsoft visual C++. Acco