Attach the pdf file to the e-mail and use text body field

I'm looking to create a form with a button 'submit' at the bottom.  When you click the button submit, I would e-mail window to open with a predefined recipient, and the pdf file attached.  I found the code to achieve this using this.mailDoc)

However:

I hope also to get the text field 'Name' of my screen and use it in the body of the e-mail message.

I found the following code in another post, which seems to work for this:

var cClientName = this.getField("ClientName").value;

cAddress var = this.getField("Address").value;


cbody var = ' Customer Information: \n\n ";

cbody += "name:"+ cClientName + "\n"; '.

cbody += "address:"+ cAddress + '\n'; '.


var myURL = "mailto: . " [email protected] ? subject = Customer Info & body =";

myURL += cbody;


app.launchURL (myURL, true);


That will open a window of e-mail with a body that contains the data of AcroForm fields named "ClientName" and "Address".

The problem is that this code will not work the pdf.

How can I get the best of both worlds?

Thank you!

You don't need launchURL to achieve this goal. mailDoc is capable of setting of the

subject line, body of the email, the lists of beneficiaries, etc.

See this tutorial for a detailed explanation:

http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

Tags: Acrobat

Similar Questions

  • When you try to attach a PDF file to an e-mail message in Yahoo Mail I'm unable to send the e-mail message.

    I get this message when I try to attach a PDF file to a Yahoo Email and it prevents me to send the attachment.

    original title: access denied, line 56, Char7

    Hi Harvey.s,

    1. Did you the latest changes on the computer?
    2. What web browser you use to access yahoo mail?
    3. Having similar problem when setting all other files as a word document in the email?
    4. You have security software installed on the computer?

    Check if you are facing the similar question in the setting of all other files in yahoo mail.

    Try the procedure only if you use the browser Internet explorer to access yahoo mail below.

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

  • When I attach a pdf file to an e-mail message, it displays the file in full no not as an attcahment

    Why is it when I attach PDFs to an e-mail message, they show the full document of the file not as a pdf file icon... I have attached a passport to send and it showed the page of the passport and not on the pdf icon... I don't understand why? Someone at - it help him?

    Paul

    Right-click on the attachment PDF full size and in the context menu, select display as icon.

  • I download a pdf file of my e-mail and it goes to microsoft works. but does not open the files

    I had some pdf files sent me don't download it except in microsoft works. but then the files will be open not because they say it not supported. These are important files, I need it now

    Work will not read a PDF file, you need a PDF reader.

    Adobe Reader
    http://get.Adobe.com/reader/

    Foxit Reader
    http://www.foxitsoftware.com/PDF/reader/

    Adobe is more "well known", but Foxit is much lighter and my personal preference.

  • When I try to attach a pdf file to an e-mail it is printed in El Capitan why

    Why, a PDF file is saved under the ribs (top Capitalan) not come up as an attachment but rather returning to full printed form?

    In the mail?

    Try control - clicking it and see if you get an option to do an attachment.

    Terminal command to try.

    defaults write com.apple.mail DisableInlineAttachmentViewing - bool YES

  • Attach a PDF file when sending e-mail

    Hello

    Can you help me to send a pdf file as an attachment when sending mail.

    Also, please tell me the required configuration changes that need to be done.

    It is important that where is your file that you are trying to reach and how you create the file object out of it to go to the MimeMessageUtils.setContent (). Thus there is no specific location to place the file you just create its object file correctly. For example if your PDF is created by another application and it is present in the so-called C:\app\output\pdf or/usr/local/app/output/pdf so that you can do is to define a Java System property (let's name the property system as file.attach.dir) through your scripts to start the server with comme-Dfile.attach.dir=C:\\app\\output\\pdf ou-Dfile.attach.dir=/usr/local/app/output/pdf

    And then, in your code you can do something like:

    Attachment of files = new queue (File.separatorChar + System.getProperty ("file.attach.dir") + "attachment.pdf");
    MimeMessageUtils.setContent (message, content, seizure, false);

    You can also place files for attachment to a specific folder of ATG and access it using atg.nucleus.DynamoEnv. Say that the file is in a directory called 'attachments' in the ATG data directory which by default is \home in the case of an attained EAR you can do

    Attachment of files is new leader (atg.nucleus.DynamoEnv.getDataDir () .getPath () File.separatorChar + "attachments" + File.separatorChar + "attachment.pdf");.
    MimeMessageUtils.setContent (message, content, seizure, false);

    If you make and deploy EAR on the application server as stand-alone then you might already have the ATG data directory affect some location through the property system - Datg.dynamo.data - dir in your server startup scripts. So, if this is the case, you can use this same property as described earlier in the first approach.

    You can always check the path of the file and know if he is getting properly solved using Java API file as file.getPath () and file.exists () where the file is the file object that you created. Make sure file.exists () return you true and that you will not encounter a FileNotFound Exception.

  • Problems attaching a PDF of email (hotmail) in Mail on a Mac

    Hello

    I'm trying to attach a PDF file to an e-mail - using Hotmail on Mac Mail. It made plenty of times before and can fix other things (by doc Word excel spreadsheet etc.).

    Following message appears.

    Please wait...

    If this message is not subsequently to display the content of your document, your PDF reader isn't able to display this kind of document.

    Goes on to say retrieves the most recent version of Adobe etc - I already had.

    Any suggestions please?

    I'm confused. He will join an e-mail message you send?

    Looks like since you mention view that yo try to view an attachment.

    What is the source / what created the pdf file?

  • When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroE

    When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroExch or ensure that all the dialog boxes in AcroExch are closed. "even disabled protection at startup mode. Who made no difference

    Hi sdesk.

    This problem occurs with the 64-bit application as Acrobat is a 32-bit application making it incompatible to insert objects into a MS Word 64-bit application.

    As a workaround solution insert the object as a 'Create New' rather than create a file.

    Let me know if it helps.

    Kind regards
    Nicos

  • When I try to print a PDF file it does not print and goes directly to a backup of the file option.

    When I try to print a PDF file it does not print and goes directly to a backup of the file option

    original title: pdf print
    Hello

    1. don't you make changes on the computer before the show?
    2. don't get any error message?
    3. what version of the operating system is installed on the computer?
    4 is the issue limited exclusively with printing PDF files?
    5. where are you printing from PDF files?
    6. What is the brand and model of the printer?


    Method 1:
    Run the fix it and check.
    Diagnose and automatically fix problems printing and printer
    http://support.Microsoft.com/mats/printing_problems/

    Method 2:
    Perform the steps from the link and check.
    Printer in Windows problems
    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Method 3:
    You can perform the steps from the link and check if you are able to print.
    Resolve PDF printing problems. Acrobat, Reader

    Reference link:
    Why can I not print?
  • I need acrobat pro to open a pdf file I created in quark and reduce the size of the file?

    I need acrobat pro to open a pdf file I created in quark and reduce the size of the file?

    It may be preferable to use a downsampling image option in Quark during the pdf creation process.

  • Mac OS 10.10.2 is installed and can open documents on my new Mac Air but an error message occurs, with, I try to attach a PDF file to emails.  Any thoughts?  Apple could not help.

    Mac OS 10.10.2 is installed and can open documents on my new Mac Air but an error message occurs when you try to attach a PDF file to emails.  Apple was not able to solve.  Any thoughts?

    It is not broken, just confused. The recipient must save the file and open it in Adobe Reader. Your e-mail application is not using Adobe Reader.

  • Why can't attach a PDF file in gmail

    When I try to attach a PDF file (or any file type) to an email in Gmail in Firefox, it still fails. I actually had a little real PDF to fix this morning but then tried a little bigger and it has just failed. I have no problem with it on IE or Chrome.

    Hello

    Try clear your recent history:

    Check if this happens in safe mode:

    Check if your plugins are updated:

    Try going to Subject: config and check if the plugin.state.java option is true seted

  • Is it possible to use Adobe Pro to create a PDF file from an e-mail item in Outlook 2013?

    Is it possible to use Adobe Pro to create a PDF file from an e-mail item in Outlook 2013? We used this feature in Outlook 2010 and just converted in 2013 Outlook, but it doesn't seem to be available any longer?

    Are there plans to make available for Outlook 2013 or 2016?

    Hi maryga0922,

    You must have Acrobat installed compatible version that would work with Outlook 2013.

    Otherwise you will not see the Acrobat tab in Outlook. Web browsers and applications of PDFMaker

    This is the reason why I asked for the version of Acrobat is installed on your system.

    Kind regards

    Nicos

  • Anyone know how to attach a PDF file to a Dreamweaver page? I have CS 5.5. Thank you.

    Anyone know how to attach a PDF file to a Dreamweaver page? I have CS 5.5.

    Thank you...

    Link to the PDF (size: 100 KB)

    Nancy O.

  • How can I attach a PDF file to an employment application?

    I have the ipad to Apple 4 with the last update ios8, my question is... How can I attach a PDF file that is recorded in a job application that I do online? I installed Adobe reader on the App store.

    Hi Simon,.

    Unless this application has the ability to attach a PDF document with her, I am sorry that you can not.

    Kind regards

    Ajlan Huda.

Maybe you are looking for

  • Possible solution to your WIFI problems

    OK, switch the connection to the local network to your wireless network. First: restart the computer, then turn on the Flash ("C:\Program Files\Toshiba\FlashCards\TCrdMain.exe") cards, at this point your Fn + F8 should work to check and turn on WIFI.

  • trigger a loop to run during the impulse is received

    Hi I have an operation simple that I need to run however I can't understand how to perform.  I have a signal that goes up (or true, I can do either) for an iteration then returns low (or false).  I need this high signal to trigger the start of a loop

  • Video playback is divided into 4 pieces and is black and white

    Video playback is divided into 4 pieces and is black and white HELP!

  • USB Hub problems

    We must use an IO digital USB 6501 and a card to USB-6525 relay but I just want to have a USB cable running back to the computer.  For this application, a USB Hub makes sense, but I wanted to ask the public OR and see if anyone has had problems with

  • 16 GB Bitlocker password

    I bought used 16 GB Cruzer and did not receive the Bitlocker password, I formatted the flash drive and have now no operating system on it.  What is my game?  I have also an old 2 GB Cruzer with autorun, LaunchPad and LaunchU3, all dated in April or m