These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Within the body of the email rather than as an attachment?

NRJ
Registered: May 26 2011
Posts: 1

I have a form with a submit button, which attaches the pdf file in an email , Is there a way to have the form and its entire contents "within the body of the email" rather than as an attachment?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes. But you have to keep in mind that "emails" are text, so of course you can't put the actual form in the email body. But you can send an email from a form script. You'd need to write the script to build the body of the email with data from the form.

Look up the "app.mailMsg()" function in the Acrobat JavaScript Reference.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

NK-INC.COM
Registered: Apr 17 2010
Posts: 93
Q: Is there a way to have the form and its entire contents "within the body of the email" rather than as an attachment

A: No, I don't think you can embed objects (PDF/FLASH/VIDEO) within the body of an e-mail message due to security restrictions, but as THOMP was saying you can add the field values into a string and send the message with a text or html body.

Note: If you attach the PDF to an e-mail, I know some e-mail clients allow the user to "Preview" the attachment without opening the form in a new window.