Hi, I'm preparing a fillable PDF to send to a client. On the last page, I have a simple mailto: link to my email address, and if I test click on it, the Windows Mail app opens up right away.
Right below that link, however, I'm trying to include a "Submit" button that will send the client's completed form as an attachment to my email. In this case, the "Submit a Form" action would be best, right? In the action settings, I selected PDF - Include entire document. But when I go to test it by clicking on it myself, a window pops up with a choice between "Default Mail Application" (greyed out) and "Use Webmail."
This is not something I would want my clients to encounter, especially since if they were to add an email manually (assuming they even trusted this pop-up), the email would only be saved to their drafts.
I've seen a lot of posts trying to answer the submit form action issue, but they all involve going in to your computer's settings, and in this case I don't want a client to do any of that; I just want them to be able to click a button and have an email ready to send. Can anyone offer advice, or test the file and let me know what happens for you? I've attached the file so you can take a look at it for yourself
Copy link to clipboard
Email from a PDF is very tricky since it relies on the user's default email app and local Acrobat settings. I'm on Windows and use Outlook. When I pushed the submit button on your form it displays a new outlook email with the file attachement and the specified subject line. Unfortunately there is no way to guarentee a consistent experience for everyone when using this methodology. And this doesn't even include users who use a 3rd party and/or mobile PDF viewer. For example, if someone opens the form in Safari, the submit probably won't work at all.
The best way to handle data submits is to send it to a server script. This is the most consisten action across all platforms/viewers where it is supported. The server script can then email the form if necessary.
There are however some different ways to handle sending an email attachment using JavaScipt, as explained here:
With the Submit button to send the PDF to email, is there a way to do this "silently"? In the backgroud without opening up the mail client?
Yes, run the email opeation from a privileged location.
This could mean using a folder level trusted function to preform the submit, or adding the document to the trusted list on the "Enhanced Security" area of the Acrobat Preferences: