These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

email without user intervention

mgoedde
Registered: Mar 5 2007
Posts: 14

I have a button on a form that executes the script below.
 
I am trying to email the document after the user has marked a checkbox. I think I understand that the reason the email user interface appears is that the bUI paramete is not honored in a non-priveleged setting.
 
So I tried the code below, but the user interface still appears. Is there some way to just click the OK button and have the document emailed without any more user intervention?
 
Thanks for any help...
  
trustedMailDoc = app.trustedFunction( this.mailDoc({
bUI: false,
cTo: "mgoedde [at] one [dot] net",
cSubject: "Sample Proof",
cMsg: "Here is the approved proof"
})
);
 
app.beginPriv();
trustedMailDoc();
app.endPriv();
if (this.getField("Check OK").isBoxChecked(0)) {
this.closeDoc();
}
else {
app.alert("The OK box is not checked. Please check the OK box before submitting proof.")
}

My Product Information:
Acrobat Pro 8, Windows
pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
No.The user has to hit the send button in their e-mail tool.

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].

jonathanramsey
Registered: Aug 15 2007
Posts: 1
That's truly disappointing. Barring this, it would be nice if the submitForm method returned whether the email sent of cancelled.

I would think you could submit the XML to a web interface (program, script), that would parse and send the email from the server, then forward the browser back --oxymoron- to the PDF. I haven't tried it, since it's not an option in our current application.

So, for now, we'll just hope they click "Send" in Outlook.