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

Javascript app.mailMsg Anomaly

wmatangos
Registered: Feb 21 2006
Posts: 8

When executing the app.mailMsg javascript (ie,app.mailMsg(false, "jdoe [at] abc [dot] com", "", "", "Third Shift", "No third shift tonight"); will send silently. If this code is within a pdf it will bring up Outlook to send the message. Any ideas?

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Acrobat is very security concious. When a script is executed from a javascript file or the console window it enjoys special privileges because it is on the users system. Scripts in a document however are suspicious since they are from an unknown source. They are restricted in what they can do. Silent operation is one of those restrictions. The user is always involved in what is going on.

The only way to give document scripts privilege is to certify the PDF. Then users with the certificate on thier system have silent operation on the mailMsg function.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script