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.

Similar Messages

  • Is there a way to link multiple emails to a form submit button?

    The project I am working on requires that employees submit a form to their respective managers. There are multiple managers and I am only wanting to have to send out one PDF form to everyone.
    I am wondering if  there is a way to have a dropdown list with peoples names and have whatever name is selected in the dropdown list be the email address that the form gets sent to when the user hits the submit button.
    Right now I just have it set up so that each form has a different "mailto:" address in the submit button, meaning I have to have 7 different PDF's, each with a unique email for that manager.
    Thanks in advance for all your help!

    Yes, you could capture the email address from a field on your form and create a dynamic e-mail submission. You'll find detail on how to do this in the following tutorial:
    http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

  • How to edit email body of email subscription and how to subscribe to a IR private group by report

    hi,
    I am new to oracle Apex and I need help in finding how I can customize the email body of the email subscription of IR. Also when a user creates a private/public report in IR using group by in IR and subscribe to it, they are getting report without group by as htm attachment in email subscription. can you please help me know how I can prevent this??

    hi,
    anybody please help me with this. I am still looking out for help/answers..

  • From:, To: and Subject: end up in email body - html email using sendmail

    To the experts and the experienced:
    I am trying to send email in html format from a Korn shell script on Solaris 10. The
    email does get delivered and is displayed html-formatted, except that the From:, To: and
    Subject: lines are displayed in the email body, rather than in the email header. I
    would appreciate it very much if experts and the experienced could shed some light.
    I use this command line to send the email:
    sendmail -t [email protected] < testmail
    The content of the testmail file is as follows:
    MIME-Version: 1.0
    Content-Type: multipart/alternative; boundary="frontier"
    --frontier
    Content-Type: text/plain
    From: [email protected]
    To: [email protected]
    Subject: test html email
    This is a plain-text email.
    Newman
    --frontier
    Content-Type: text/html
    From: [email protected]&lt;br/&gt;
    To: [email protected]&lt;br/&gt;
    Subject: test html email&lt;br/&gt;
    &lt;h3 align="center"&gt;This is a html email&lt;/h3&gt;
    &lt;p&gt;This is the paragraph.&lt;/p&gt;
    &lt;p&gt;Newman&lt;/p&gt;
    frontier\
    The email received in Microsoft Outlook (html-formatted), looks like this:
    From:         [email protected]
    To:
    Subject:
    From: [email protected]
    To: [email protected]
    Subject: test html email
    <h3 align="center">This is a html email</h3>
    <p>This is the paragraph.</p>
    Newman
    Two things in the email need fixing:
    1. All the From:, To: and Subject: lines are treated as part of the email body and are
    displayed in the email body, rather than in the header as I wanted them to.
    2. The From: line in the email header is the actual sender, not the Bursar.Office as I
    put in the testmail file. This can be easily done when using SMTP (telnet to port 25)
    or mailx.
    How do I tell sendmail/the email client to display in the intended places the From:,
    To: and Subject: information that I specified in the testmail file?
    Many thanks!
    Newman

    I searched in google and found a solution:
    mailx -r [email protected] -s "test html email
    content-type: text/html" john.doe < testmail
    The testmail file is a pure html file with one <html></html> element. The content embedded in this element is the body of the email, with all the usual tags you would like to use: <head>, <style>, &lt;h3&gt;, &lt;p&gt;, &lt;ul&gt;, etc.
    The trick is piggy-backing a content-type with the subject. It seems to me this it to get the content-type into the email header rather than into the body. And that was exactly the problem I had.
    The command lines was executed on Solaris 10. It works.
    Hope this could be useful to someone who would encounter the same problem.
    Newman

  • Code issue in php form - submit button not sending email

    Created a form that was originally supposed to open up to 2 pages depending on what was clicked. Clear would send you to an error page, and submit would send you to a thank you page. Decided that was a waste and so did not create the html pages. BUT, wanted the form info for the contact page.
    Here is the issue: it will not submit when submit is clicked. It clears when you click clear, but there's no email coming from the site via submit.
    Do I need to edit the php form code if I don't want the other pages? I've looked at what I have but I don't see if there is a form error or anything here. Here is the code for anyone who wants to have a look. Thanks in advance.
    <?php
    // get posted data into local variables
    $EmailFrom = "EMAIL FROM WEP PAGE - CONTACT - ";
    $EmailTo = "[email protected]";
    $Subject = "EMAIL FROM jennylowhar.com - CONTACT -";
    $name = Trim(stripslashes($_POST['name']));
    $telephone = Trim(stripslashes($_POST['telephone']));
    $email = Trim(stripslashes($_POST['email']));
    $comments = Trim(stripslashes($_POST['comments']));
    // validation
    $validationOK=true;
    if (Trim($name)=="") $validationOK=false;
    if (Trim($email)=="") $validationOK=false;
    if (!$validationOK) {
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
      exit;
    // prepare email body text
    $Body = "";
    $Body .= "name: ";
    $Body .= $name;
    $Body .= "\n";
    $Body .= "telephone: ";
    $Body .= $telephone;
    $Body .= "\n";
    $Body .= "email: ";
    $Body .= $email;
    $Body .= "\n";
    $Body .= "comments: ";
    $Body .= $comments;
    $Body .= "\n";
    // send email
    $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
    // redirect to success page
    if ($success){
      print "<meta http-equiv=\"refresh\" content=\"0;URL=thankyou.html\">";
    else{
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.php\">";
    ?>

    I'm confused by that, but I know this works.
    $fname=STRIPSLASHES($_POST['fname']);
    $lname=STRIPSLASHES($_POST['lname']);
    $title=STRIPSLASHES($_POST['title']);
    $company=STRIPSLASHES($_POST['company']);
    $street=STRIPSLASHES($_POST['street']);
    $town=STRIPSLASHES($_POST['town']);
    $zip=STRIPSLASHES($_POST['zip']);
    $phone=STRIPSLASHES($_POST['phone']);
    $fax=STRIPSLASHES($_POST['fax']);
    $county=STRIPSLASHES($_POST['county']);
    $phone=STRIPSLASHES($_POST['phone']);
    $email=STRIPSLASHES($_POST['email']);
    $comments=STRIPSLASHES($_POST['comments']);
    $date=STRIPSLASHES($_POST['date']);
    $time=STRIPSLASHES($_POST['time']);
    $location=STRIPSLASHES($_POST['location']);
    $from="$email";
    $to="putemailhere";
    $subject="Submission from Contact Form";
    $msg= "This is a submission from yoururl.com.\n\n"
    . "Clients Name: $fname . $lname \n"
    . "Title: $title\n"
    . "Company Name: $company\n"
    . "Street Address: $street\n"
    . "Town:$town\n"
    . "Zip: $zip\n"
    . "Telephone: $phone\n"
    . "Email Address: $email\n"
    . "Comments: $comments\n";
    mail($to, $subject, $msg, 'From:' .$from);
    PS, go back and edit your origial post and REMOVE your email.
    Gary

  • Submit button for email

    I have dreamweaver mx 2004. I have create a contact form
    including a submit button. But can't figure out how to attach an
    email address to this submit button so that once a viewer hits this
    submit button, the appropriate will be notified with respective
    viewer's infor in the form?
    Thanks,
    Carole

    You don't attach an address to the submit button. You direct
    the form's action to a script that processes the email. Please use
    this forum's search feature to get the details as this is a very
    commonly asked question.

  • Changing TO email address in submit button

    How do I change the address that appears in the Email To: in a submit button for a document that I need to distribute to others?

    Just edit the button using the button tool. You have to do this in the tool you used (Acrobat or Designer). You can not edit a Designer form with Acrobat. Be aware that some folks may have problems with e-mail submission due to their e-mail client setup. If so, you will have to deal with that. If it is a small group of folks who know each other, you can probably deal with it.

  • Submit Button in Deffernt  Cell

    Hi guys,
    I am running into an issue. I designed a website in
    Fireworks. I created a place where the visitor can input email and
    then it would send to email. NOW I normally have no issue using the
    submit button. BUT I wanted to create a custom one. But the submit
    button is on a differnt cell because if I put in the same cell it
    stretched the cell making gaps.
    Hope this make sense. PM me for link to website

    *can't
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Back for 2007, close-up magic:
    http://deceptivemagic.com
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Shane H" <[email protected]> wrote in
    message
    news:eooief$mor$[email protected]..
    > Hi,
    >
    > A majority of us are using the NNTP forums, we can
    private message you. If
    > you want assistance, you'll need to post your URL in a
    reply.
    >
    > Thanks,
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    > =============================================
    > Back for 2007, close-up magic:
    >
    http://deceptivemagic.com
    >
    > Web dev articles, photography, and more:
    >
    http://sourtea.com
    > =============================================
    > Proud GAWDS member
    >
    http://www.gawds.org/showmember.php?memberid=1495
    >
    > Delivering accessible websites to all ...
    > =============================================
    >
    >
    > "SurJones" <[email protected]> wrote in
    message
    > news:eooib7$mkc$[email protected]..
    >> Hi guys,
    >>
    >> I am running into an issue. I designed a website in
    Fireworks. I created
    >> a
    >> place where the visitor can input email and then it
    would send to email.
    >> NOW I
    >> normally have no issue using the submit button. BUT
    I wanted to create a
    >> custom
    >> one. But the submit button is on a differnt cell
    because if I put in the
    >> same
    >> cell it stretched the cell making gaps.
    >>
    >> Hope this make sense. PM me for link to website
    >>
    >
    >

  • Submit button

    I created a form in Adobe Acrobat x pro when i email the form the submit button works. Now for Bi publisher i need to reduce the size to Acrobat 5.0 or later. When i do this the submit button doesn't work. On my computer the submit button works

    Are you opening it using the browser's PDF plugin, or using the Adobe
    plugin? The former are known to be very buggy, especially when it comes to
    form fields.
    On Wed, Apr 15, 2015 at 9:11 PM, paular56088711 <[email protected]>

  • Submit button hidden when update to version reader X

    Hi,
    I use an interactive Form of Acrobat that can sent by Email after activate the submit button. But when I did an update Adobe reader to version X, the submit button and purple toolbar dissapeared.
    Version 8.x and 9.x of Adobe reader did not have this problem. Please can someone help me.
    Regards,
    Ron

    Don't shoot the messenger, but it seems to have fixed itself (I did reboot my Bold last night!).  Is this magic or is there really a logic to this?

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

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

  • Using a submit button, how can I include a data key and a message in the body of the email??

    I have a form that I have created in LiveCycle with a submit button to have the completed form emailed to a specific person. I have it set up with a message in the body of the email, but I am looking to add an additional message based on the results of one of the fields in the form....is this possible without major script writing?
    I am not a programmer, but willing to learn some script.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

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

  • My submit email button if pushed twice puts email body in "to" address

    My submit email button if pushed twice puts email body in "to" address????
    Any ideas???

    Seems odd it there aint a email field in the Object menu.
    Im still on 8.2 so havent checked out the latest version. Aint it there if you go Window -> Object, or just hit SHIFT + F7?
    Is the full object menu visible so a part of it aint hidden below the screen?
    Hope it works out.

Maybe you are looking for

  • Error while creating the service entry sheet in PRD

    Hi All, We are in SAP R/3 4.7 Version. OF39 settings are 58 & 61 Statistical update only ! Now my case is i assigned Rs.100 Budget agaisnt one FC & Comitmetn item & created one service Purchase order Rs.80 & Make down payment against same PO Rs.80. N

  • Safe mode plus serial port

    My computer can only boot in the safe mode (logic board failure). No problem except I would like to have a serial port working. A USB external disk works fine. So how can it be made to work? Trying to load a kext for the serial port using terminal do

  • Solaris 11.2 Zones

    Hi All, I've been battling with creating/installing a zone. I've setup all my zone configs but when I try to install the my zone. this is the error message I get: 'NoneType' object has no attribute 'bind' And when I check the install log, this is wha

  • Reason for rejection not changed in transaction MASS

    Hi everybody,      I'm trying to update a sales order item with a reason for rejection (field VBAP-ABGRU) in transaction MASS but it doesn't work. I took a look in SAP notes and found similar problems but these notes (specially note 390105) don't app

  • Make a background photo that will resize to the users browser size

    I'm trying to create an effect like this in Iweb: http://neistatbrothers.com/ You'll notice that the background image resizes to the browser size. I have read threads like that say to edit the HTML from "Scroll" to "Fixed"... that doesn't seem work.