Skip to main content
Participant
October 11, 2024
Answered

Outlook PDF Javascript

  • October 11, 2024
  • 2 replies
  • 885 views

Howdy!! I have been searching for a simple way to send a filled out PDF through Outlook. 

 

I have the pdf form completed and currently have this as the URL - mailto:ithelpdesk@blahblah.com?subject=New%20Hire%20IT%20Form

 

I would like to go a step further and create a simple java script oike this: Once the user clicks on the submit button: 

 - Outlook opens and attaches the pdf named "IT New Hire Form"

 - Auto populate the IT helpdesk desk email 

 - Add message? Please see new hire form and proceed.. (something like that) 

- If possible, do not remove their signature when the email is created

 

Thanks! 

This topic has been closed for replies.
Correct answer PDF Automation Station

var to="ithelpdesk@blahblah.com";

var sbjt = "The subject line of the email";

var body ="Dear people:\r\rPlease see new hire form and proceed.. (something like that) ";

this.mailDoc({cTo: to, cSubject: sbjt, cMsg: body});

 

Before clicking Send, the user would have to change the text to HTML and add the signature.

2 replies

try67
Community Expert
Community Expert
October 11, 2024

>  If possible, do not remove their signature when the email is created

That is not possible. The emails generated using a script are plain-text only, and therefore do not include the signature that is normally used in your email client.

PDF Automation Station
Community Expert
Community Expert
October 11, 2024

var to="ithelpdesk@blahblah.com";

var sbjt = "The subject line of the email";

var body ="Dear people:\r\rPlease see new hire form and proceed.. (something like that) ";

this.mailDoc({cTo: to, cSubject: sbjt, cMsg: body});

 

Before clicking Send, the user would have to change the text to HTML and add the signature.

Participant
October 11, 2024

This is what I was looking for - THANK YOU!!