• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Mailto: opens default email application, but Submit Form action does not

New Here ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

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

 

Screenshot 1.JPG

 

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

TOPICS
Create PDFs , Edit and convert PDFs , General troubleshooting , PDF forms

Views

3.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 08, 2021 Jul 08, 2021

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 th

...

Votes

Translate

Translate
Community Expert ,
Jul 08, 2021 Jul 08, 2021

Copy link to clipboard

Copied

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:

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

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2021 Dec 01, 2021

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2021 Dec 02, 2021

Copy link to clipboard

Copied

LATEST

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:

 

https://www.pdfscripting.com/public/Trust-and-Privilege-in-Acrobat-Scripts.cfm

 

  

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines