Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

50

Likes

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

Adobe Community Professional , 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...

Likes

Translate

Translate
Adobe Community Professional ,
Jul 08, 2021 Jul 08, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

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