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.

Similar Messages

  • 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

  • Customise the email submit button with custom email, cc, bcc, subject and body - almost working!!

    Hi
    I have been working on trying to customise the email submit button to custom entry email address, cc, bcc, subject etc etc
    You can use the pre-submit function on the email button
    I am using the following code:
    this.event__click.resolveNode("#submit").format = formatlist.rawValue;
    this.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
    THis is picking up values from a dropdown and a series of text boxes the values of each area.
    This works beautifully except for the subject area. For some reason teh subject area copies the entire srting from the subject onwards, all other areas (cc & bcc & body) all only copy the value assigned to its function.
    Any thoughts
    Feels like a bug in the coding but it may also be intentional.
    Thanks

    I believe that there was a bug logged for this issue, here is a workaround.
    Add a regular button to the form used to execute the EmailSubmit button  (you can make the EmailSubmit button invisible)
    On the click event of the "newly added" regular button add your script
    NameOfEmailSubmitButton.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
    NameOfEmailSubmitButton.execEvent("click");

  • Customizing email body on email submit button

    Hi everyone,
    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 the xml source. I scrolled down to the following line:
                   <submit format="xml" textEncoding="UTF-8" target="mailto:test&test.com?subject=My subject"/>
    Then changed it to:
                   <submit format="xml" textEncoding="UTF-8" target="mailto:test&test.com?subject=My subject?body=new body"/>
    When I tested the button, the text "?body=new body" was appended to the subject line instead of being included in the body itself.
    I wondered if anyone could tell lme where I'm going wrong?
    Appreciate any help.

    What I ran across in my searching (that worked) was to create hidden fields that contained the data I wanted to use. I also used a "dummy" submit button. The "real" submit button was created as a literal submit button and the following code inserted into the click event of the "dummy" button (which is a Regular button)
    RealEmail.event__click.submit.target = "mailto:[email protected]?subject=" + SUBJECT.rawValue;
    //app.alert(RealEmail.event__click.submit.target);
    RealEmail.execEvent("click");
    This code was modified from another's answer, but does the job. The field "SUBJECT" is set as "Hidden" in the presence drop-down of the object tab. I suspect one could add '&body=' as follows
    RealEmail.event__click.submit.target = "mailto:[email protected]?subject=" + SUBJECT.rawValue + "&body=" + BODY.formattedValue;
    You would create the field "BODY" and insert the message text and call the formatted value to fill it in. Set the field to "Hidden" so it does not affect your form layout. I am open to being corrected by more experienced scripters (Please and thank you) if I am in error, here.

  • 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

  • Add text field into the 'subject' of a email submit button

    I have a form where the client will enter their name, organisation, query and details of their query into text fields.  I would like the text in the 'query' field to be added to the 'subject' of the email submit button.  This will identify different queries submitted by other clients before opening up the completed pdf form attachment.

    Hi,
    if you use ES3 or ES4 you can use my macro to create email scripts with values from form fields.
    http://thelivecycle.blogspot.de/2012/05/mailto-maker-marco-v1.html

  • Email submit button using drop down boxes, cc field and

    I have a form that I would like to have the employees use a drop down box that already exists on the form with names and email addresses and use those names in the to field of an email submit button.  Also, I do have a static cc: address in teh cc field and for the subject of the email to use  an existing field such as the name field as the subject of the email and attach the form to it.

    I tried that but it  does not seem to be working.  I am a JavaScript Novice.  I am trying  to use the mailto field based on email addresses in a dropdown box, a static cc field like cc: [email protected] and for the subject to be based on the company name field on the form.  But before all of that I want to make sure all the required fields are filled out.  help I have been working on this for over a year.  It may seem simple but it's not working.

  • Email submit button - email subject doesn't work

    I have a form I created in Livecycle. I have an email submit button.
    The properties of the button let me change the subject of the email. But no matter what I set that to, when the button is click it will only send the form saying "Submitting Completed Form"
    I cannot get it to change to anything else!
    I am using a manual distribution method (also when saving it will let me rename the form, but then just creates a _distributed.pdf file that is the same name as the form).
    Also the email to never changes. I can set it to whatever I like, but when I distribute, it will also go to the person designated when I made the form.
    I'm using ES2 on Win 7 64 bit.

    What type of CC are you using. The only supported ones are Master Card and Visa. If you are using a different one then it will not allow you to use the Submit. I appolgize, I want to be sure of the issue.
    If you are still having problems the next step is a partial erase on the device. Here is a link on how to do that process:
    http://kb.palm.com/wps/portal/kb/common/article/23197_en.html

  • Email Submit Button and Reader 7.0?

    I was just wondering if the email submit button works in reader 7.0? I created the submit button so that it sends out the entire PDF form and the data instead of just the raw data, but someone tested it in reader 7.0 and it gives a "this operation is not permitted" error. I have professional 7.0, and it works great for me. So I was wondering if this was something to do with the version of adobe?
    - Natalie

    Hi Natalie,
    To email the entire PDF in the free Reader, you would need to "reader extend" the form using LiveCycle Reader Extensions see:
    http://www.adobe.com/products/server/readerextensions/pdfs/readerextensionsserver_ds.pdf
    You can however email the XML data instead (as an alternate option)and this will work in the free Reader as well as in Acrobat.
    Catherine
    Adobe Systems

  • Email submit button created in LC ES2 causes Acrobat and Reader to crash

    I've created a form in LC ES2, and included an email submit button. When I open this form in Acrobat Reader 10.1.3, click the submit button, and specify "Desktop Email Application," as opposed to the "Internet Email" option, no email is generated, Reader locks up and requires force closing. This happens also with Acrobat X Pro. With both programs, it happens (1) when the form is Reader enabled AND when it's not, (2) when I use an http submit button with a submit to URL of: mailto:[email protected], and (3) when I use a standard button, with control type "submit" and a submit to URL of: mailto:[email protected]
    I AM able to save the form in Acrobat Pro and in Reader (when rights are enabled), I just can't email it.

    Have had the same problem for years. It crashes for me when i just try to email within acrobat. Not sure if its a problem causes by my work network or if it is just another thing never to be fixed by Adobe.

  • Email body copy created by email submit button

    The body of a message created by the email submit button contains the following copy:
    "The attached file contains data that was entered into a form. It is not the form itself.
    The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 for more details."
    How do I prevent this, or change the default copy?

    jimmy,
    I've also followed your advice. FYI I'm using LiveCycle Designer 7.1. My only problem is that I can't use HTML markup inside the HTTP Submit Button's URL attribute.
    For example, a
    tag in the HTTP Submit Button's URL attribute appears as just that inside the email body copy:
    . There's no line break.
    The default "Submit by Email" body copy message has a paragraph break as seen below:
    The attached file contains data that was entered into a form. It is not the form itself.
    The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 for more details.
    My question is, how can I add HTML markup in the email body copy? Can this be done with the HTTP Submit button's URL attribute or can the Email Submit Button be customized to change the above email body copy?

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

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

  • 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

  • Email Submit Button problem

    I used the Email Submit Button on a couple of forms but it is not working. It creates an email, but the attachment is in .xml format. If I change it to Submit As: PDF, it does not create any email at all. I would like it to create an email with an attachment in pdf format that keeps all the user entered data. Impossible?

    Hi,
    Try doing the following
    try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
    Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
    In the 'submit to URL field' type:
    mailto:nameataddress.com?subject=mySubject&body=Done
    You may need to adjust the e-mail address, subject and body text.
    Regards
    Ayyapparaj

Maybe you are looking for

  • How to connect mobile model 2310 or 1112 to comput...

    how to connect mobile model 2310 or 1112 to computer i want to connect my mob to computer to update my ring tons

  • Functions Used in SAP XI

    Hi, Good Noon, I want to understand all the functions with detailed example like TEXT,NODE,USER DEFINED,ARITHMETIC,STATIC,DATE,CONSTANTS,BOOLEAN. Regards, Komik Shah

  • Cropped book when in pdf

    Hi, I experienced something weird when saving a book in pdf with aperture 3. Indeed, the edge of the book are cropped... Any idea ? Sebastien.

  • Final Cut Suddenly Stopped Recognizing Files It Had Recognized Before

    FCE 4 has suddenly stopped recognizing certain files that it has recognized without a problem for the past several years I've used the program. It won't recognize 1920x1080 mp4, but it WILL recognize 1920x1080 mov and it WILL recognize 1080x720 mp4.

  • Doubts on BO

    please answer the following 1) what is FRS and its tasks 2)how many types of links we have in WebI 3)Types of OLAPs 4)what is the difference between BO 6.5 and XIR2 5)In Database i have 3000 rows but in report level i am getting 4000 rows what is the