Skip to main content
Participant
May 7, 2024
Question

emailing pdf thru web based Outlook

  • May 7, 2024
  • 1 reply
  • 609 views

Hello,

I have a email button on my pdf that attaches the pdf file to an email and it has worked fine for server based Outlook users, but some users have now been switched to web based Outlook and the script no longer works for these users. The current script is:

 

if (this.getField("Initial").valueAsString==this.getField("Initial").defaultValue) {
app.alert("PLEASE CHECK AND INITIAL THE FORM IF EVERYTHING IS CORRECT");

} else {

// Send the entire PDF as a file attachment on an email
var targetEmail = this.getField("Testing Lab Drop").valueAsString;

var location = this.getField("LocationD").value;
var subjectLine = "Other sample paperwork for: " + location;
this.mailDoc({cTo: targetEmail, cSubject: subjectLine, cMsg: "Thank you"})};

 

I need this script to work on both server based Outlook and on the Web based Outlook. Is this doable? Thank you for any assistance. I greatly appreciate it!

This topic has been closed for replies.

1 reply

Amal.
Legend
May 7, 2024

Hi there

Hope you are doing well and thanks for reaching out.

The workflow you are trying to achieve might be possible using JavaScript. For more information, please check the help pages listed below:
https://acrobatusers.com/tutorials/javascript_console/
https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

Hope it will help

Regards
Amal

Participant
May 21, 2024

I use JavaScript and I posted the code above which has worked fine up until we switched to web-based Outlook365. I am having trouble getting the Outlook365 to compose an email with the selected email address on the pdf to send the pdf as an attachment.

I tried the open web link action but that only opens the web based Outlook365 and no a "compose email' window. I'm not worried about the server based Outlook anymore since all users will eventually be migrated over to 365.

Any recommendations on how to fix this?

Participant
May 21, 2024

I have tried the Action-submit form but it lets me only designate one email address. 

I have a dropdown on my pdf document that selects different locations and attached to each location is a unique email address. When on the old server based Outlook, it would email the form to the selected email address. based on this dropdown I have no such option with the submit form action.